Class AppIdentityCredential.AppEngineCredentialWrapper (2.6.0)

public static class AppIdentityCredential.AppEngineCredentialWrapper extends GoogleCredential

Beta
Credential wrapper for application identity that inherits from GoogleCredential.

Inheritance

java.lang.Object > com.google.api.client.auth.oauth2.Credential > GoogleCredential > AppIdentityCredential.AppEngineCredentialWrapper

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
Name Description
scopes Collection<String>
Returns
Type Description
GoogleCredential
Overrides

createScopedRequired()

public boolean createScopedRequired()

Beta
Indicates whether the credential requires scopes to be specified by calling createScoped before use.

Returns
Type Description
boolean
Overrides

executeRefreshToken()

protected TokenResponse executeRefreshToken()
Returns
Type Description
com.google.api.client.auth.oauth2.TokenResponse
Overrides
Exceptions
Type Description
IOException

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
Type Description
IOException