Interface CredentialsProvider.CredentialsApplier

Enclosing interface:
CredentialsProvider

public static interface CredentialsProvider.CredentialsApplier
Used to apply call credentials on a per-request basis, abstracting over gRPC and REST. This interface is only meant to be consumed, not implemented externally.
  • Method Summary

    Modifier and Type
    Method
    Description
    ofMetadata(io.grpc.Metadata metadata)
    Helper method to build a credentials applier out of gRPC metadata.
    void
    put(String key, String value)
    Puts the given header key and value into the request headers (e.g.
  • Method Details

    • put

      void put(String key, String value)
      Puts the given header key and value into the request headers (e.g. HTTP headers or gRPC metadata).
      Parameters:
      key - the header key
      value - the header value
    • ofMetadata

      static CredentialsProvider.CredentialsApplier ofMetadata(io.grpc.Metadata metadata)
      Helper method to build a credentials applier out of gRPC metadata.
      Parameters:
      metadata - the gRPC metadata on which to apply