Class AppIdentityCredential.AppEngineCredentialWrapper (1.33.4)

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
NameDescription
transportcom.google.api.client.http.HttpTransport

the transport for Http calls.

jsonFactorycom.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
NameDescription
scopesCollection<String>
Returns
TypeDescription
GoogleCredential
Overrides

createScopedRequired()

public boolean createScopedRequired()

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

Returns
TypeDescription
boolean
Overrides

executeRefreshToken()

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

intercept(HttpRequest request)

public void intercept(HttpRequest request)
Parameter
NameDescription
requestcom.google.api.client.http.HttpRequest
Overrides
com.google.api.client.auth.oauth2.Credential.intercept(com.google.api.client.http.HttpRequest)
Exceptions
TypeDescription
IOException