Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE #660] Add namespace in metadata #671

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public class Signature {
public static final String LANGUAGE_KEY = "x-mq-language";
public static final String CLIENT_VERSION_KEY = "x-mq-client-version";
public static final String PROTOCOL_VERSION = "x-mq-protocol";
public static final String NAMESPACE_KEY = "x-mq-namespace";

public static final String ALGORITHM = "MQv2-HMAC-SHA1";
public static final String CREDENTIAL = "Credential";
Expand All @@ -69,6 +70,7 @@ public static Metadata sign(ClientConfiguration config, ClientId clientId) throw
metadata.put(Metadata.Key.of(REQUEST_ID_KEY, Metadata.ASCII_STRING_MARSHALLER), requestId);

metadata.put(Metadata.Key.of(CLIENT_ID_KEY, Metadata.ASCII_STRING_MARSHALLER), clientId.toString());
metadata.put(Metadata.Key.of(NAMESPACE_KEY, Metadata.ASCII_STRING_MARSHALLER), config.getNamespace());

final Optional<SessionCredentialsProvider> optionalSessionCredentialsProvider =
config.getCredentialsProvider();
Expand Down
Loading