public static class AppIdentityCredential.AppEngineCredentialWrapper extends GoogleCredential
Beta
Credential wrapper for application identity that inherits from GoogleCredential.
Inherited Members
com.google.api.client.auth.oauth2.Credential.getAccessToken()
com.google.api.client.auth.oauth2.Credential.getClientAuthentication()
com.google.api.client.auth.oauth2.Credential.getClock()
com.google.api.client.auth.oauth2.Credential.getExpirationTimeMilliseconds()
com.google.api.client.auth.oauth2.Credential.getExpiresInSeconds()
com.google.api.client.auth.oauth2.Credential.getJsonFactory()
com.google.api.client.auth.oauth2.Credential.getMethod()
com.google.api.client.auth.oauth2.Credential.getRefreshListeners()
com.google.api.client.auth.oauth2.Credential.getRefreshToken()
com.google.api.client.auth.oauth2.Credential.getRequestInitializer()
com.google.api.client.auth.oauth2.Credential.getTokenServerEncodedUrl()
com.google.api.client.auth.oauth2.Credential.getTransport()
com.google.api.client.auth.oauth2.Credential.handleResponse(com.google.api.client.http.HttpRequest,com.google.api.client.http.HttpResponse,boolean)
com.google.api.client.auth.oauth2.Credential.initialize(com.google.api.client.http.HttpRequest)
com.google.api.client.auth.oauth2.Credential.intercept(com.google.api.client.http.HttpRequest)
com.google.api.client.auth.oauth2.Credential.refreshToken()
Constructors
AppEngineCredentialWrapper(HttpTransport transport, JsonFactory jsonFactory)
public AppEngineCredentialWrapper(HttpTransport transport, JsonFactory jsonFactory)
Constructs the wrapper using the default AppIdentityService.
Parameters
Name | Description |
transport | com.google.api.client.http.HttpTransport
the transport for Http calls.
|
jsonFactory | com.google.api.client.json.JsonFactory
the factory for Json parsing and formatting.
|
Methods
createScoped(Collection<String> scopes)
public GoogleCredential createScoped(Collection<String> scopes)
Beta
For credentials that require scopes, creates a copy of the credential with the specified
scopes.
Parameter
Returns
Overrides
createScopedRequired()
public boolean createScopedRequired()
Beta
Indicates whether the credential requires scopes to be specified by calling createScoped before
use.
Returns
Overrides
executeRefreshToken()
protected TokenResponse executeRefreshToken()
Returns
Type | Description |
com.google.api.client.auth.oauth2.TokenResponse | |
Overrides
Exceptions
intercept(HttpRequest request)
public void intercept(HttpRequest request)
Parameter
Name | Description |
request | com.google.api.client.http.HttpRequest
|
Overrides
com.google.api.client.auth.oauth2.Credential.intercept(com.google.api.client.http.HttpRequest)
Exceptions