Class JwtCallCredentials


  • public final class JwtCallCredentials
    extends io.grpc.CallCredentials
    JWTCallCredentials provides/attaches a static JWT token for making authenticated gRPC calls. The given token will be passed as authorization bearer token when making calls.
    • Constructor Detail

      • JwtCallCredentials

        public JwtCallCredentials​(String jwt)
    • Method Detail

      • applyRequestMetadata

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

        public void thisUsesUnstableApi()
        Specified by:
        thisUsesUnstableApi in class io.grpc.CallCredentials