Package io.grpc.auth
Class GoogleAuthLibraryCallCredentials.JwtHelper
java.lang.Object
io.grpc.auth.GoogleAuthLibraryCallCredentials.JwtHelper
- Enclosing class:
GoogleAuthLibraryCallCredentials
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.auth.Credentials
tryServiceAccountToJwt
(com.google.auth.Credentials creds) This method tries to convert aCredentials
object to a ServiceAccountJwtAccessCredentials.
-
Field Details
-
serviceAccountClass
-
newJwtBuilder
-
build
-
getScopes
-
methodPairs
-
-
Constructor Details
-
JwtHelper
public JwtHelper(Class<?> rawServiceAccountClass, ClassLoader loader) throws ClassNotFoundException, NoSuchMethodException
-
-
Method Details
-
tryServiceAccountToJwt
public com.google.auth.Credentials tryServiceAccountToJwt(com.google.auth.Credentials creds) This method tries to convert aCredentials
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.
-