public class AppEngineCredentials extends GoogleCredentials implements ServiceAccountSigner
Fetches access tokens from the App Identity service.
| Modifier and Type | Class and Description |
|---|---|
static class |
AppEngineCredentials.Builder |
OAuth2Credentials.CredentialsChangedListenerServiceAccountSigner.SigningExceptionquotaProjectIdGOOGLE_DEFAULT_UNIVERSE| Modifier and Type | Method and Description |
|---|---|
GoogleCredentials |
createScoped(Collection<String> scopes) |
boolean |
createScopedRequired() |
boolean |
equals(Object obj) |
String |
getAccount() |
int |
hashCode() |
static AppEngineCredentials.Builder |
newBuilder() |
AccessToken |
refreshAccessToken()
Refresh the access token by getting it from the App Identity service
|
byte[] |
sign(byte[] toSign) |
AppEngineCredentials.Builder |
toBuilder() |
String |
toString() |
create, create, createDelegated, createScoped, createScoped, createWithCustomRetryStrategy, createWithQuotaProject, fromStream, fromStream, getAdditionalHeaders, getApplicationDefault, getApplicationDefault, getQuotaProjectId, getUniverseDomain, isExplicitUniverseDomain, toStringHelperaddChangeListener, getAccessToken, getAuthenticationType, getFromServiceLoader, getRequestMetadata, getRequestMetadata, getRequestMetadataInternal, hasRequestMetadata, hasRequestMetadataOnly, newInstance, refresh, refreshIfExpired, removeChangeListenerblockingGetToCallback, getRequestMetadatapublic 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 GoogleCredentialspublic String toString()
toString in class GoogleCredentialspublic boolean equals(Object obj)
equals in class GoogleCredentialspublic static AppEngineCredentials.Builder newBuilder()
public AppEngineCredentials.Builder toBuilder()
toBuilder in class GoogleCredentialsCopyright © 2024 Google. All rights reserved.