Package io.grpc.auth

Class GoogleAuthLibraryCallCredentials.JwtHelper

java.lang.Object
io.grpc.auth.GoogleAuthLibraryCallCredentials.JwtHelper
Enclosing class:
GoogleAuthLibraryCallCredentials

static class GoogleAuthLibraryCallCredentials.JwtHelper extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • tryServiceAccountToJwt

      public com.google.auth.Credentials tryServiceAccountToJwt(com.google.auth.Credentials creds)
      This method tries to convert a Credentials object to a ServiceAccountJwtAccessCredentials. The original credentials will be returned if:
      • The Credentials is not a ServiceAccountCredentials
      • The ServiceAccountCredentials has scopes
      • Something unexpected happens
      Parameters:
      creds - the Credentials to convert
      Returns:
      either the original Credentials or a fully formed ServiceAccountJwtAccessCredentials.