public class GoogleCredentialWithIamAccessToken
extends com.google.api.client.googleapis.auth.oauth2.GoogleCredential
Credential to generate or refresh IAM access token.| Constructor and Description |
|---|
GoogleCredentialWithIamAccessToken(com.google.api.client.http.HttpTransport transport,
com.google.api.client.http.HttpRequestInitializer initializer,
String serviceAccountName,
com.google.common.collect.ImmutableList<String> scopes) |
GoogleCredentialWithIamAccessToken(com.google.api.client.http.HttpTransport transport,
com.google.api.client.http.HttpRequestInitializer initializer,
String serviceAccountName,
com.google.common.collect.ImmutableList<String> scopes,
com.google.api.client.util.Clock clock) |
| 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, toBuildergetAccessToken, getClientAuthentication, getClock, getExpirationTimeMilliseconds, getExpiresInSeconds, getJsonFactory, getMethod, getRefreshListeners, getRefreshToken, getRequestInitializer, getTokenServerEncodedUrl, getTransport, handleResponse, initialize, intercept, refreshTokenpublic GoogleCredentialWithIamAccessToken(com.google.api.client.http.HttpTransport transport,
com.google.api.client.http.HttpRequestInitializer initializer,
String serviceAccountName,
com.google.common.collect.ImmutableList<String> scopes)
throws IOException
IOExceptionpublic GoogleCredentialWithIamAccessToken(com.google.api.client.http.HttpTransport transport,
com.google.api.client.http.HttpRequestInitializer initializer,
String serviceAccountName,
com.google.common.collect.ImmutableList<String> scopes,
com.google.api.client.util.Clock clock)
throws IOException
IOExceptionprotected com.google.api.client.auth.oauth2.TokenResponse executeRefreshToken()
throws IOException
executeRefreshToken in class com.google.api.client.googleapis.auth.oauth2.GoogleCredentialIOExceptionCopyright © 2022. All rights reserved.