public class AppEngineCredentials extends GoogleCredentials
Fetches access tokens from the App Identity service.
OAuth2Credentials.CredentialsChangedListener| 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() |
AccessToken |
refreshAccessToken()
Refresh the access token by getting it from the App Identity service
|
fromStream, fromStream, getApplicationDefault, getApplicationDefaultaddChangeListener, getAccessToken, getAuthenticationType, getRequestMetadata, hasRequestMetadata, hasRequestMetadataOnly, refreshgetRequestMetadatapublic 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 GoogleCredentialsCopyright © 2016 Google. All rights reserved.