Package | Description |
---|---|
com.google.auth.appengine | |
com.google.auth.oauth2 |
Modifier and Type | Method and Description |
---|---|
AccessToken |
AppEngineCredentials.refreshAccessToken()
Refresh the access token by getting it from the App Identity service
|
Modifier and Type | Class and Description |
---|---|
class |
IdToken
Represents a temporary IdToken and its JsonWebSignature object
|
Modifier and Type | Method and Description |
---|---|
AccessToken |
AccessToken.Builder.build() |
protected AccessToken |
ExternalAccountCredentials.exchangeExternalCredentialForAccessToken(com.google.auth.oauth2.StsTokenExchangeRequest stsTokenExchangeRequest)
Exchanges the external credential for a Google Cloud access token.
|
AccessToken |
OAuth2Credentials.getAccessToken()
Returns the cached access token.
|
AccessToken |
OAuth2Credentials.Builder.getAccessToken() |
AccessToken |
DownscopedCredentials.refreshAccessToken() |
AccessToken |
IdentityPoolCredentials.refreshAccessToken() |
AccessToken |
OAuth2CredentialsWithRefresh.refreshAccessToken()
Refreshes the access token using the provided
OAuth2CredentialsWithRefresh.OAuth2RefreshHandler . |
AccessToken |
OAuth2CredentialsWithRefresh.OAuth2RefreshHandler.refreshAccessToken() |
AccessToken |
ExternalAccountAuthorizedUserCredentials.refreshAccessToken() |
AccessToken |
ImpersonatedCredentials.refreshAccessToken() |
AccessToken |
AwsCredentials.refreshAccessToken() |
AccessToken |
OAuth2Credentials.refreshAccessToken()
Method to refresh the access token according to the specific type of credentials.
|
AccessToken |
CloudShellCredentials.refreshAccessToken() |
AccessToken |
PluggableAuthCredentials.refreshAccessToken() |
AccessToken |
ServiceAccountCredentials.refreshAccessToken()
Refreshes the OAuth2 access token by getting a new access token using a JSON Web Token (JWT).
|
AccessToken |
ComputeEngineCredentials.refreshAccessToken()
Refresh the access token by getting it from the GCE metadata server
|
AccessToken |
IdTokenCredentials.refreshAccessToken() |
AccessToken |
GdchCredentials.refreshAccessToken()
Refresh the OAuth2 access token by getting a new access token using a JSON Web Token (JWT).
|
AccessToken |
UserCredentials.refreshAccessToken()
Refreshes the OAuth2 access token by getting a new access token from the refresh token
|
Modifier and Type | Method and Description |
---|---|
static GoogleCredentials |
GoogleCredentials.create(AccessToken accessToken)
Returns the credentials instance from the given access token.
|
static OAuth2Credentials |
OAuth2Credentials.create(AccessToken accessToken)
Returns the credentials instance from the given access token.
|
GoogleCredentials.Builder |
GoogleCredentials.Builder.setAccessToken(AccessToken token) |
OAuth2CredentialsWithRefresh.Builder |
OAuth2CredentialsWithRefresh.Builder.setAccessToken(AccessToken token)
Sets the
AccessToken to be consumed. |
ExternalAccountAuthorizedUserCredentials.Builder |
ExternalAccountAuthorizedUserCredentials.Builder.setAccessToken(AccessToken accessToken)
Sets the optional access token.
|
OAuth2Credentials.Builder |
OAuth2Credentials.Builder.setAccessToken(AccessToken token) |
UserCredentials.Builder |
UserCredentials.Builder.setAccessToken(AccessToken token) |
Constructor and Description |
---|
Builder(AccessToken accessToken) |
GoogleCredentials(AccessToken accessToken)
Constructor with explicit access token.
|
GoogleCredentials(AccessToken accessToken,
Duration refreshMargin,
Duration expirationMargin)
Constructor with explicit access token and refresh times
|
GoogleCredentials(AccessToken accessToken,
String quotaProjectId) |
OAuth2Credentials(AccessToken accessToken)
Constructor with explicit access token.
|
OAuth2Credentials(AccessToken accessToken,
Duration refreshMargin,
Duration expirationMargin) |
OAuth2CredentialsWithRefresh(AccessToken accessToken,
OAuth2CredentialsWithRefresh.OAuth2RefreshHandler refreshHandler) |
Copyright © 2023 Google. All rights reserved.