@Beta public static class AppIdentityCredential.AppEngineCredentialWrapper extends GoogleCredential
Beta GoogleCredential.BuilderCredential.AccessMethod| Constructor and Description |
|---|
AppEngineCredentialWrapper(HttpTransport transport,
JsonFactory jsonFactory)
Constructs the wrapper using the default AppIdentityService.
|
| Modifier and Type | Method and Description |
|---|---|
GoogleCredential |
createScoped(Collection<String> scopes) |
boolean |
createScopedRequired() |
protected TokenResponse |
executeRefreshToken() |
void |
intercept(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(HttpTransport transport, 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 AppIndentityService is not available.public void intercept(HttpRequest request) throws IOException
intercept in interface HttpExecuteInterceptorintercept in class CredentialIOExceptionpublic boolean createScopedRequired()
createScopedRequired in class GoogleCredentialpublic GoogleCredential createScoped(Collection<String> scopes)
createScoped in class GoogleCredentialprotected TokenResponse executeRefreshToken() throws IOException
executeRefreshToken in class GoogleCredentialIOExceptionCopyright © 2010–2022 Google. All rights reserved.