public class AppEngineCredentials extends GoogleCredentials implements ServiceAccountSigner
Fetches access tokens from the App Identity service.
OAuth2Credentials.CredentialsChangedListenerServiceAccountSigner.SigningException| Constructor and Description |
|---|
AppEngineCredentials(Collection<String> scopes) |
AppEngineCredentials(Collection<String> scopes,
com.google.appengine.api.appidentity.AppIdentityService appIdentityService) |
| Modifier and Type | Method and Description |
|---|---|
GoogleCredentials |
createScoped(Collection<String> scopes) |
boolean |
createScopedRequired() |
boolean |
equals(Object obj) |
String |
getAccount() |
int |
hashCode() |
AccessToken |
refreshAccessToken()
Refresh the access token by getting it from the App Identity service
|
byte[] |
sign(byte[] toSign) |
String |
toString() |
fromStream, fromStream, getApplicationDefault, getApplicationDefaultaddChangeListener, getAccessToken, getAuthenticationType, getFromServiceLoader, getRequestMetadata, getRequestMetadata, hasRequestMetadata, hasRequestMetadataOnly, newInstance, refresh, toStringHelperblockingGetToCallback, getRequestMetadatapublic AppEngineCredentials(Collection<String> scopes)
public AppEngineCredentials(Collection<String> scopes, com.google.appengine.api.appidentity.AppIdentityService appIdentityService)
public AccessToken refreshAccessToken() throws IOException
refreshAccessToken in class OAuth2CredentialsIOExceptionpublic boolean createScopedRequired()
createScopedRequired in class GoogleCredentialspublic GoogleCredentials createScoped(Collection<String> scopes)
createScoped in class GoogleCredentialspublic String getAccount()
getAccount in interface ServiceAccountSignerpublic byte[] sign(byte[] toSign)
sign in interface ServiceAccountSignerpublic int hashCode()
hashCode in class OAuth2Credentialspublic String toString()
toString in class OAuth2Credentialspublic boolean equals(Object obj)
equals in class OAuth2CredentialsCopyright © 2017 Google. All rights reserved.