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.

  • Field Details

  • Constructor Details

    • BearerHandler

      public BearerHandler()
  • Method Details

    • setBearerToken

      public void setBearerToken(String bearerToken)
    • getCurrentToken

      public UUID getCurrentToken()
    • applyRequestMetadata

      public void applyRequestMetadata(io.grpc.CallCredentials.RequestInfo requestInfo, Executor appExecutor, io.grpc.CallCredentials.MetadataApplier applier)
      Specified by:
      applyRequestMetadata in class io.grpc.CallCredentials
    • thisUsesUnstableApi

      public void thisUsesUnstableApi()
      Overrides:
      thisUsesUnstableApi in class io.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 interface io.grpc.ClientInterceptor