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, toBuilder
getAccessToken, getClientAuthentication, getClock, getExpirationTimeMilliseconds, getExpiresInSeconds, getJsonFactory, getMethod, getRefreshListeners, getRefreshToken, getRequestInitializer, getTokenServerEncodedUrl, getTransport, handleResponse, initialize, intercept, refreshToken
public 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
IOException
public 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
IOException
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.