public class GoogleCredentialsManager extends Object implements CredentialsManager
| Constructor and Description |
|---|
GoogleCredentialsManager(InputStream serviceAccount,
String audience,
String scope) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthorization()
Talks to the Google IAM service to obtain a JWT using a Service Account.
|
void |
invalidateAuthorization()
Used by clients to invalidate the current token for any reason other than
expiry, which is handled by this CredentialManager.
|
public GoogleCredentialsManager(InputStream serviceAccount, String audience, String scope) throws IOException
IOExceptionpublic String getAuthorization() throws CredentialsException
getAuthorization in interface CredentialsManagerCredentialsException - when an error occurs when attempting to get an authorization
token.public void invalidateAuthorization()
invalidateAuthorization in interface CredentialsManagerCopyright © 2018. All rights reserved.