public static class CredentialFactory.GoogleCredentialWithRetry
extends com.google.api.client.googleapis.auth.oauth2.GoogleCredential
GoogleCredential
that properly wires specified
HttpRequestInitializer
through the @{link Credential#executeRefreshToken} override.
We will not retry 403 "invalid_request" rate limiting errors. See the following for more on rate limiting in OAuth: https://code.google.com/p/google-api-java-client/issues/detail?id=879
Constructor and Description |
---|
GoogleCredentialWithRetry(com.google.api.client.googleapis.auth.oauth2.GoogleCredential.Builder builder) |
Modifier and Type | Method and Description |
---|---|
protected com.google.api.client.auth.oauth2.TokenResponse |
executeRefreshToken() |
static CredentialFactory.GoogleCredentialWithRetry |
fromGoogleCredential(com.google.api.client.googleapis.auth.oauth2.GoogleCredential credential)
Create a new GoogleCredentialWithRetry from a GoogleCredential.
|
createScoped, createScopedRequired, fromStream, fromStream, getApplicationDefault, getApplicationDefault, getServiceAccountId, getServiceAccountPrivateKey, getServiceAccountPrivateKeyId, getServiceAccountScopes, getServiceAccountScopesAsString, getServiceAccountUser, setAccessToken, setExpirationTimeMilliseconds, setExpiresInSeconds, setFromTokenResponse, setRefreshToken
getAccessToken, getClientAuthentication, getClock, getExpirationTimeMilliseconds, getExpiresInSeconds, getJsonFactory, getMethod, getRefreshListeners, getRefreshToken, getRequestInitializer, getTokenServerEncodedUrl, getTransport, handleResponse, initialize, intercept, refreshToken
public GoogleCredentialWithRetry(com.google.api.client.googleapis.auth.oauth2.GoogleCredential.Builder builder)
public static CredentialFactory.GoogleCredentialWithRetry fromGoogleCredential(com.google.api.client.googleapis.auth.oauth2.GoogleCredential credential)
protected com.google.api.client.auth.oauth2.TokenResponse executeRefreshToken() throws IOException
executeRefreshToken
in class com.google.api.client.googleapis.auth.oauth2.GoogleCredential
IOException
Copyright © 2016. All rights reserved.