Class AppIdentityCredential.AppEngineCredentialWrapper (2.6.0)
Stay organized with collections
Save and categorize content based on your preferences.
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.
Overrides
createScopedRequired()
public boolean createScopedRequired()
Beta
Indicates whether the credential requires scopes to be specified by calling createScoped before
use.
Overrides
executeRefreshToken()
protected TokenResponse executeRefreshToken()
Returns |
Type |
Description |
com.google.api.client.auth.oauth2.TokenResponse |
|
Overrides
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)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-24 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-09-24 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-24 UTC."]]