Class BearerToken

java.lang.Object
io.grpc.CallCredentials
com.authzed.grpcutil.BearerToken

public class BearerToken extends io.grpc.CallCredentials
Bearer token implementation that can be used with GRPC stubs.
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.grpc.CallCredentials

    io.grpc.CallCredentials.MetadataApplier, io.grpc.CallCredentials.RequestInfo
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyRequestMetadata(io.grpc.CallCredentials.RequestInfo requestInfo, Executor executor, io.grpc.CallCredentials.MetadataApplier applier)
     

    Methods inherited from class io.grpc.CallCredentials

    thisUsesUnstableApi

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • BearerToken

      public BearerToken(String value)
  • Method Details

    • applyRequestMetadata

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