@Beta public static class AppIdentityCredential.AppEngineCredentialWrapper extends GoogleCredential
Beta GoogleCredential.Builder| Constructor and Description |
|---|
AppIdentityCredential.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() |
void |
intercept(com.google.api.client.http.HttpRequest request) |
executeRefreshToken, fromStream, fromStream, getApplicationDefault, getApplicationDefault, getServiceAccountId, getServiceAccountPrivateKey, getServiceAccountPrivateKeyId, getServiceAccountScopes, getServiceAccountScopesAsString, getServiceAccountUser, setAccessToken, setExpirationTimeMilliseconds, setExpiresInSeconds, setFromTokenResponse, setRefreshTokengetAccessToken, getClientAuthentication, getClock, getExpirationTimeMilliseconds, getExpiresInSeconds, getJsonFactory, getMethod, getRefreshListeners, getRefreshToken, getRequestInitializer, getTokenServerEncodedUrl, getTransport, handleResponse, initialize, refreshTokenpublic AppIdentityCredential.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 AppIndentityService 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 GoogleCredentialCopyright © 2010-2015 Google. All Rights Reserved.