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
Modifier and Type | Method and Description |
---|---|
protected com.google.api.client.auth.oauth2.TokenResponse |
executeRefreshToken() |
createDelegated, createScoped, createScopedRequired, fromStream, fromStream, getApplicationDefault, getApplicationDefault, getServiceAccountId, getServiceAccountPrivateKey, getServiceAccountPrivateKeyId, getServiceAccountProjectId, getServiceAccountScopes, getServiceAccountScopesAsString, getServiceAccountUser, setAccessToken, setExpirationTimeMilliseconds, setExpiresInSeconds, setFromTokenResponse, setRefreshToken, toBuilder
getAccessToken, getClientAuthentication, getClock, getExpirationTimeMilliseconds, getExpiresInSeconds, getJsonFactory, getMethod, getRefreshListeners, getRefreshToken, getRequestInitializer, getTokenServerEncodedUrl, getTransport, handleResponse, initialize, intercept, refreshToken
protected com.google.api.client.auth.oauth2.TokenResponse executeRefreshToken() throws IOException
executeRefreshToken
in class com.google.api.client.googleapis.auth.oauth2.GoogleCredential
IOException
Copyright © 2021. All rights reserved.