public class Credentials
extends io.grpc.CallCredentials
| Modifier and Type | Class and Description |
|---|---|
static class |
Credentials.CredentialsBuilder |
| Constructor and Description |
|---|
Credentials() |
Credentials(String authenticationToken,
Set<Header> withAdditionalHeaders)
Create a
Credentials object with additional headers to be used
within the underlying gRPC connection. |
| Modifier and Type | Method and Description |
|---|---|
void |
applyRequestMetadata(io.grpc.CallCredentials.RequestInfo requestInfo,
Executor executor,
io.grpc.CallCredentials.MetadataApplier metadataApplier) |
static Credentials.CredentialsBuilder |
builder() |
static Credentials |
from(Set<Header> additionalHeaders)
Create a
Credentials object with additional headers to be used
within the underlying gRPC connection. |
static Credentials |
from(String authenticationToken) |
com.concordium.sdk.Credentials.CallCredentials |
getCallCredentials() |
void |
thisUsesUnstableApi() |
public Credentials(String authenticationToken, Set<Header> withAdditionalHeaders)
Credentials object with additional headers to be used
within the underlying gRPC connection.authenticationToken - the authentication token i.e., the header 'Authentication' is set with this value.
If the value is not provided header will not be set.withAdditionalHeaders - an optional set of extra headers to use within the connection.public Credentials()
public static Credentials from(String authenticationToken)
public static Credentials from(Set<Header> additionalHeaders)
Credentials object with additional headers to be used
within the underlying gRPC connection.additionalHeaders - a set of extra headers to use within the connection.public final void applyRequestMetadata(io.grpc.CallCredentials.RequestInfo requestInfo,
Executor executor,
io.grpc.CallCredentials.MetadataApplier metadataApplier)
applyRequestMetadata in class io.grpc.CallCredentialspublic void thisUsesUnstableApi()
thisUsesUnstableApi in class io.grpc.CallCredentialspublic static Credentials.CredentialsBuilder builder()
public com.concordium.sdk.Credentials.CallCredentials getCallCredentials()
Copyright © 2025. All rights reserved.