@ThreadSafe public class HubAuthenticationInterceptor extends Object implements io.grpc.ClientInterceptor
Modifier and Type | Field and Description |
---|---|
static io.grpc.Metadata.Key<String> |
METADATA_API_KEY
Metadata key for the API key.
|
static io.grpc.Metadata.Key<String> |
METADATA_SECRET_KEY
Metadata key for the Secret key.
|
Constructor and Description |
---|
HubAuthenticationInterceptor(HubAuthentication hubAuthentication)
Creates the client-side interceptor that augments outgoing metadata with API and secret keys
for authentication.
|
Modifier and Type | Method and Description |
---|---|
<ReqT,RespT> |
interceptCall(io.grpc.MethodDescriptor<ReqT,RespT> method,
io.grpc.CallOptions callOptions,
io.grpc.Channel next) |
public static final io.grpc.Metadata.Key<String> METADATA_API_KEY
public static final io.grpc.Metadata.Key<String> METADATA_SECRET_KEY
public HubAuthenticationInterceptor(HubAuthentication hubAuthentication)
hubAuthentication
- API and secret keys used by the Hub Manager for authenticationCopyright © 2023. All Rights Reserved.