@Beta public static class AppIdentityCredential.AppEngineCredentialWrapper extends GoogleCredential
Beta GoogleCredential.Builder| Constructor and Description |
|---|
AppEngineCredentialWrapper(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory)
Constructs the wrapper using the default AppIdentityService.
|
| Modifier and Type | Method and Description |
|---|---|
GoogleCredential |
createScoped(Collection<String> scopes) |
boolean |
createScopedRequired() |
protected com.google.api.client.auth.oauth2.TokenResponse |
executeRefreshToken() |
void |
intercept(com.google.api.client.http.HttpRequest request) |
createDelegated, fromStream, fromStream, getApplicationDefault, getApplicationDefault, getServiceAccountId, getServiceAccountPrivateKey, getServiceAccountPrivateKeyId, getServiceAccountProjectId, getServiceAccountScopes, getServiceAccountScopesAsString, getServiceAccountUser, setAccessToken, setExpirationTimeMilliseconds, setExpiresInSeconds, setFromTokenResponse, setRefreshToken, toBuildergetAccessToken, getClientAuthentication, getClock, getExpirationTimeMilliseconds, getExpiresInSeconds, getJsonFactory, getMethod, getRefreshListeners, getRefreshToken, getRequestInitializer, getTokenServerEncodedUrl, getTransport, handleResponse, initialize, refreshTokenpublic AppEngineCredentialWrapper(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory)
throws IOException
transport - the transport for Http calls.jsonFactory - the factory for Json parsing and formatting.IOException - if the credential cannot be created for the current environment, such as
when the AppIdentityService is not available.public void intercept(com.google.api.client.http.HttpRequest request)
throws IOException
intercept in interface com.google.api.client.http.HttpExecuteInterceptorintercept in class com.google.api.client.auth.oauth2.CredentialIOExceptionpublic boolean createScopedRequired()
createScopedRequired in class GoogleCredentialpublic GoogleCredential createScoped(Collection<String> scopes)
createScoped in class GoogleCredentialprotected com.google.api.client.auth.oauth2.TokenResponse executeRefreshToken()
throws IOException
executeRefreshToken in class GoogleCredentialIOExceptionCopyright © 2010–2024 Google. All rights reserved.