public class AppEngineCredentials extends com.google.auth.oauth2.GoogleCredentials implements ServiceAccountSigner
Fetches access tokens from the App Identity service.
| Modifier and Type | Class and Description |
|---|---|
static class |
AppEngineCredentials.Builder |
com.google.auth.oauth2.OAuth2Credentials.CredentialsChangedListenerServiceAccountSigner.SigningException| Modifier and Type | Method and Description |
|---|---|
com.google.auth.oauth2.GoogleCredentials |
createScoped(Collection<String> scopes) |
boolean |
createScopedRequired() |
boolean |
equals(Object obj) |
String |
getAccount() |
int |
hashCode() |
static AppEngineCredentials.Builder |
newBuilder() |
com.google.auth.oauth2.AccessToken |
refreshAccessToken()
Refresh the access token by getting it from the App Identity service
|
byte[] |
sign(byte[] toSign) |
AppEngineCredentials.Builder |
toBuilder() |
String |
toString() |
create, createDelegated, createScoped, createScoped, createWithCustomRetryStrategy, fromStream, fromStream, getApplicationDefault, getApplicationDefaultaddChangeListener, getAccessToken, getAdditionalHeaders, getAuthenticationType, getFromServiceLoader, getRequestMetadata, getRequestMetadata, getRequestMetadataInternal, hasRequestMetadata, hasRequestMetadataOnly, newInstance, refresh, refreshIfExpired, removeChangeListenerblockingGetToCallback, getRequestMetadatapublic com.google.auth.oauth2.AccessToken refreshAccessToken() throws IOException
refreshAccessToken in class com.google.auth.oauth2.OAuth2CredentialsIOExceptionpublic boolean createScopedRequired()
createScopedRequired in class com.google.auth.oauth2.GoogleCredentialspublic com.google.auth.oauth2.GoogleCredentials createScoped(Collection<String> scopes)
createScoped in class com.google.auth.oauth2.GoogleCredentialspublic String getAccount()
getAccount in interface ServiceAccountSignerpublic byte[] sign(byte[] toSign)
sign in interface ServiceAccountSignerpublic int hashCode()
hashCode in class com.google.auth.oauth2.OAuth2Credentialspublic String toString()
toString in class com.google.auth.oauth2.OAuth2Credentialspublic boolean equals(Object obj)
equals in class com.google.auth.oauth2.OAuth2Credentialspublic static AppEngineCredentials.Builder newBuilder()
public AppEngineCredentials.Builder toBuilder()
toBuilder in class com.google.auth.oauth2.GoogleCredentialsCopyright © 2022 Google. All rights reserved.