Package io.deephaven.client.impl
Class BearerHandler
java.lang.Object
io.grpc.CallCredentials
io.deephaven.client.impl.BearerHandler
- All Implemented Interfaces:
io.grpc.ClientInterceptor
public final class BearerHandler
extends io.grpc.CallCredentials
implements io.grpc.ClientInterceptor
As a
ClientInterceptor
, this parser the responses for the bearer token.
As a CallCredentials
, this sets the (previously attained) bearer token on requests.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.CallCredentials
io.grpc.CallCredentials.MetadataApplier, io.grpc.CallCredentials.RequestInfo
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
applyRequestMetadata
(io.grpc.CallCredentials.RequestInfo requestInfo, Executor appExecutor, io.grpc.CallCredentials.MetadataApplier applier) <ReqT,
RespT>
io.grpc.ClientCall<ReqT,RespT> interceptCall
(io.grpc.MethodDescriptor<ReqT, RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next) void
setBearerToken
(String bearerToken) void
-
Field Details
-
BEARER_PREFIX
- See Also:
-
-
Constructor Details
-
BearerHandler
public BearerHandler()
-
-
Method Details
-
setBearerToken
-
getCurrentToken
-
applyRequestMetadata
public void applyRequestMetadata(io.grpc.CallCredentials.RequestInfo requestInfo, Executor appExecutor, io.grpc.CallCredentials.MetadataApplier applier) - Specified by:
applyRequestMetadata
in classio.grpc.CallCredentials
-
thisUsesUnstableApi
public void thisUsesUnstableApi()- Overrides:
thisUsesUnstableApi
in classio.grpc.CallCredentials
-
interceptCall
public <ReqT,RespT> io.grpc.ClientCall<ReqT,RespT> interceptCall(io.grpc.MethodDescriptor<ReqT, RespT> method, io.grpc.CallOptions callOptions, io.grpc.Channel next) - Specified by:
interceptCall
in interfaceio.grpc.ClientInterceptor
-