- ClientId - Class in com.google.auth.oauth2
-
An OAuth2 user authorization Client ID and associated information.
- ClientId.Builder - Class in com.google.auth.oauth2
-
- CloudShellCredentials - Class in com.google.auth.oauth2
-
OAuth2 credentials representing the built-in service account for Google Cloud Shell.
- CloudShellCredentials.Builder - Class in com.google.auth.oauth2
-
- com.google.auth.http - package com.google.auth.http
-
- com.google.auth.oauth2 - package com.google.auth.oauth2
-
- ComputeEngineCredentials - Class in com.google.auth.oauth2
-
OAuth2 credentials representing the built-in service account for a Google Compute Engine VM.
- ComputeEngineCredentials.Builder - Class in com.google.auth.oauth2
-
- create() - Method in interface com.google.auth.http.HttpTransportFactory
-
Creates a HttpTransport
instance.
- create(int) - Static method in class com.google.auth.oauth2.CloudShellCredentials
-
- create() - Static method in class com.google.auth.oauth2.ComputeEngineCredentials
-
Create a new ComputeEngineCredentials instance with default behavior.
- create(AccessToken) - Static method in class com.google.auth.oauth2.GoogleCredentials
-
Returns the credentials instance from the given access token.
- create(String) - Static method in class com.google.auth.oauth2.IdToken
-
Creates an IdToken given the encoded Json Web Signature.
- create(String, JsonFactory) - Static method in class com.google.auth.oauth2.IdToken
-
Creates an IdToken given the encoded Json Web Signature and JSON Factory
- create(GoogleCredentials, String, List<String>, List<String>, int, HttpTransportFactory) - Static method in class com.google.auth.oauth2.ImpersonatedCredentials
-
- create(GoogleCredentials, String, List<String>, List<String>, int) - Static method in class com.google.auth.oauth2.ImpersonatedCredentials
-
- create(AccessToken) - Static method in class com.google.auth.oauth2.OAuth2Credentials
-
Returns the credentials instance from the given access token.
- createDelegated(String) - Method in class com.google.auth.oauth2.GoogleCredentials
-
If the credentials support domain-wide delegation, creates a copy of the identity so that it
impersonates the specified user; otherwise, returns the same instance.
- createDelegated(String) - Method in class com.google.auth.oauth2.ServiceAccountCredentials
-
- createScoped(Collection<String>) - Method in class com.google.auth.oauth2.GoogleCredentials
-
If the credentials support scopes, creates a copy of the the identity with the specified
scopes; otherwise, returns the same instance.
- createScoped(String...) - Method in class com.google.auth.oauth2.GoogleCredentials
-
If the credentials support scopes, creates a copy of the the identity with the specified
scopes; otherwise, returns the same instance.
- createScoped(Collection<String>) - Method in class com.google.auth.oauth2.ServiceAccountCredentials
-
Clones the service account with the specified scopes.
- createScopedRequired() - Method in class com.google.auth.oauth2.GoogleCredentials
-
- createScopedRequired() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
-
Returns whether the scopes are empty, meaning createScoped must be called before use.
- fromJson(Map<String, Object>) - Static method in class com.google.auth.oauth2.ClientId
-
Constructs a Client ID from JSON from a downloaded file.
- fromPkcs8(String, String, String, String, Collection<String>) - Static method in class com.google.auth.oauth2.ServiceAccountCredentials
-
Factory with minimum identifying information using PKCS#8 for the private key.
- fromPkcs8(String, String, String, String, Collection<String>, HttpTransportFactory, URI) - Static method in class com.google.auth.oauth2.ServiceAccountCredentials
-
Factory with minimum identifying information and custom transport using PKCS#8 for the private
key.
- fromPkcs8(String, String, String, String, Collection<String>, HttpTransportFactory, URI, String) - Static method in class com.google.auth.oauth2.ServiceAccountCredentials
-
Factory with minimum identifying information and custom transport using PKCS#8 for the private
key.
- fromPkcs8(String, String, String, String) - Static method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
-
Factory using PKCS#8 for the private key.
- fromPkcs8(String, String, String, String, URI) - Static method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
-
Factory using PKCS#8 for the private key.
- fromResource(Class<?>, String) - Static method in class com.google.auth.oauth2.ClientId
-
Constructs a Client ID from JSON file stored as a resource.
- fromStream(InputStream) - Static method in class com.google.auth.oauth2.ClientId
-
Constructs a Client ID from JSON file stream.
- fromStream(InputStream) - Static method in class com.google.auth.oauth2.GoogleCredentials
-
Returns credentials defined by a JSON file stream.
- fromStream(InputStream, HttpTransportFactory) - Static method in class com.google.auth.oauth2.GoogleCredentials
-
Returns credentials defined by a JSON file stream.
- fromStream(InputStream) - Static method in class com.google.auth.oauth2.ServiceAccountCredentials
-
Returns credentials defined by a Service Account key file in JSON format from the Google
Developers Console.
- fromStream(InputStream, HttpTransportFactory) - Static method in class com.google.auth.oauth2.ServiceAccountCredentials
-
Returns credentials defined by a Service Account key file in JSON format from the Google
Developers Console.
- fromStream(InputStream) - Static method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
-
Returns credentials defined by a Service Account key file in JSON format from the Google
Developers Console.
- fromStream(InputStream, URI) - Static method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
-
Returns credentials defined by a Service Account key file in JSON format from the Google
Developers Console.
- fromStream(InputStream) - Static method in class com.google.auth.oauth2.UserCredentials
-
Returns credentials defined by a JSON file stream using the format supported by the Cloud SDK.
- fromStream(InputStream, HttpTransportFactory) - Static method in class com.google.auth.oauth2.UserCredentials
-
Returns credentials defined by a JSON file stream using the format supported by the Cloud SDK.
- GET_AUTH_TOKEN_REQUEST - Static variable in class com.google.auth.oauth2.CloudShellCredentials
-
The Cloud Shell back authorization channel uses serialized Javascript Protobuffers, preceded by
the message length and a new line character.
- GET_AUTH_TOKEN_REQUEST_BYTES - Static variable in class com.google.auth.oauth2.CloudShellCredentials
-
- getAccessToken() - Method in class com.google.auth.oauth2.OAuth2Credentials.Builder
-
- getAccessToken() - Method in class com.google.auth.oauth2.OAuth2Credentials
-
Returns the cached access token.
- getAccount() - Method in class com.google.auth.oauth2.ComputeEngineCredentials
-
Returns the email address associated with the GCE default service account.
- getAccount() - Method in class com.google.auth.oauth2.ImpersonatedCredentials
-
Returns the email field of the serviceAccount that is being impersonated.
- getAccount() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
-
- getAccount() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
-
- getAndStoreCredentialsFromCode(String, String, URI) - Method in class com.google.auth.oauth2.UserAuthorizer
-
Exchanges an authorization code for tokens and stores them.
- getApplicationDefault() - Static method in class com.google.auth.oauth2.GoogleCredentials
-
Returns the Application Default Credentials.
- getApplicationDefault(HttpTransportFactory) - Static method in class com.google.auth.oauth2.GoogleCredentials
-
Returns the Application Default Credentials.
- getAuthenticationType() - Method in class com.google.auth.oauth2.JwtCredentials
-
- getAuthenticationType() - Method in class com.google.auth.oauth2.OAuth2Credentials
-
- getAuthenticationType() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
-
- getAuthorizationUrl(String, String, URI) - Method in class com.google.auth.oauth2.UserAuthorizer
-
Return an URL that performs the authorization consent prompt web UI.
- getAuthPort() - Method in class com.google.auth.oauth2.CloudShellCredentials.Builder
-
- getAuthPort() - Method in class com.google.auth.oauth2.CloudShellCredentials
-
- getCallbackUri() - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
-
- getCallbackUri() - Method in class com.google.auth.oauth2.UserAuthorizer
-
Returns the URI for implementation of the OAuth2 web callback.
- getCallbackUri(URI) - Method in class com.google.auth.oauth2.UserAuthorizer
-
Returns the URI for implementation of the OAuth2 web callback, optionally relative to the
specified URI.
- getClientEmail() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
-
- getClientEmail() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
-
- getClientEmail() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.Builder
-
- getClientEmail() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
-
- getClientId() - Method in class com.google.auth.oauth2.ClientId
-
Returns the text identifier of the Client ID.
- getClientId() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
-
- getClientId() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
-
- getClientId() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.Builder
-
- getClientId() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
-
- getClientId() - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
-
- getClientId() - Method in class com.google.auth.oauth2.UserAuthorizer
-
Returns the Client ID user to identify the OAuth2 consent prompt.
- getClientId() - Method in class com.google.auth.oauth2.UserCredentials.Builder
-
- getClientId() - Method in class com.google.auth.oauth2.UserCredentials
-
Returns client ID of the credential from the console.
- getClientSecret() - Method in class com.google.auth.oauth2.ClientId.Builder
-
- getClientSecret() - Method in class com.google.auth.oauth2.ClientId
-
Returns the secret associated with the Client ID.
- getClientSecret() - Method in class com.google.auth.oauth2.UserCredentials.Builder
-
- getClientSecret() - Method in class com.google.auth.oauth2.UserCredentials
-
Returns client secret of the credential from the console.
- getCredentials(String) - Method in class com.google.auth.oauth2.UserAuthorizer
-
Attempts to retrieve credentials for the approved end user consent.
- getCredentialsFromCode(String, URI) - Method in class com.google.auth.oauth2.UserAuthorizer
-
Returns a UserCredentials instance by exchanging an OAuth2 authorization code for tokens.
- getDefaultAudience() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.Builder
-
- getDelegates() - Method in class com.google.auth.oauth2.ImpersonatedCredentials.Builder
-
- getExpirationTime() - Method in class com.google.auth.oauth2.AccessToken
-
Time when access token will expire.
- getFromServiceLoader(Class<? extends T>, T) - Static method in class com.google.auth.oauth2.OAuth2Credentials
-
- getHttpTransportFactory() - Method in class com.google.auth.oauth2.ComputeEngineCredentials.Builder
-
- getHttpTransportFactory() - Method in class com.google.auth.oauth2.ImpersonatedCredentials.Builder
-
- getHttpTransportFactory() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
-
- getHttpTransportFactory() - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
-
- getHttpTransportFactory() - Method in class com.google.auth.oauth2.UserCredentials.Builder
-
- getIdentityDocumentUrl() - Static method in class com.google.auth.oauth2.ComputeEngineCredentials
-
- getIdToken() - Method in class com.google.auth.oauth2.IdTokenCredentials
-
- getIdTokenProvider() - Method in class com.google.auth.oauth2.IdTokenCredentials.Builder
-
- getJwtClaims() - Method in class com.google.auth.oauth2.JwtCredentials.Builder
-
- getLifeSpanSeconds() - Method in class com.google.auth.oauth2.JwtCredentials.Builder
-
- getLifetime() - Method in class com.google.auth.oauth2.ImpersonatedCredentials.Builder
-
- getMetadataServerUrl(DefaultCredentialsProvider) - Static method in class com.google.auth.oauth2.ComputeEngineCredentials
-
- getMetadataServerUrl() - Static method in class com.google.auth.oauth2.ComputeEngineCredentials
-
- getOption() - Method in enum com.google.auth.oauth2.IdTokenProvider.Option
-
- getOptions() - Method in class com.google.auth.oauth2.IdTokenCredentials.Builder
-
- getPrivateKey() - Method in class com.google.auth.oauth2.JwtCredentials.Builder
-
- getPrivateKey() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
-
- getPrivateKey() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
-
- getPrivateKey() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.Builder
-
- getPrivateKey() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
-
- getPrivateKeyId() - Method in class com.google.auth.oauth2.JwtCredentials.Builder
-
- getPrivateKeyId() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
-
- getPrivateKeyId() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
-
- getPrivateKeyId() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.Builder
-
- getPrivateKeyId() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
-
- getProjectId() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
-
- getProjectId() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
-
- getQuotaProjectId() - Method in interface com.google.auth.oauth2.QuotaProjectIdProvider
-
- getQuotaProjectId() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
-
- getQuotaProjectId() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
-
- getQuotaProjectId() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials.Builder
-
- getQuotaProjectId() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
-
- getQuotaProjectId() - Method in class com.google.auth.oauth2.UserCredentials.Builder
-
- getQuotaProjectId() - Method in class com.google.auth.oauth2.UserCredentials
-
- getRefreshToken() - Method in class com.google.auth.oauth2.UserCredentials.Builder
-
- getRefreshToken() - Method in class com.google.auth.oauth2.UserCredentials
-
Returns the refresh token resulting from a OAuth2 consent flow.
- getRequestMetadata(URI) - Method in class com.google.auth.oauth2.JwtCredentials
-
- getRequestMetadata(URI, Executor, RequestMetadataCallback) - Method in class com.google.auth.oauth2.OAuth2Credentials
-
- getRequestMetadata(URI) - Method in class com.google.auth.oauth2.OAuth2Credentials
-
Provide the request metadata by ensuring there is a current access token and providing it as an
authorization bearer token.
- getRequestMetadata(URI) - Method in class com.google.auth.oauth2.ServiceAccountCredentials
-
- getRequestMetadata(URI, Executor, RequestMetadataCallback) - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
-
- getRequestMetadata(URI) - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
-
Provide the request metadata by putting an access JWT directly in the metadata.
- getRequestMetadata(URI) - Method in class com.google.auth.oauth2.UserCredentials
-
- getRequestMetadataInternal() - Method in class com.google.auth.oauth2.OAuth2Credentials
-
- getScopes() - Method in class com.google.auth.oauth2.ImpersonatedCredentials.Builder
-
- getScopes() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
-
- getScopes() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
-
- getScopes() - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
-
- getScopes() - Method in class com.google.auth.oauth2.UserAuthorizer
-
Returns the scopes defining the user consent.
- getServiceAccountsUrl() - Static method in class com.google.auth.oauth2.ComputeEngineCredentials
-
- getServiceAccountUser() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
-
- getServiceAccountUser() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
-
- getSourceCredentials() - Method in class com.google.auth.oauth2.ImpersonatedCredentials.Builder
-
- getTargetAudience() - Method in class com.google.auth.oauth2.IdTokenCredentials.Builder
-
- getTargetPrincipal() - Method in class com.google.auth.oauth2.ImpersonatedCredentials.Builder
-
- getTokenServerEncodedUrl(DefaultCredentialsProvider) - Static method in class com.google.auth.oauth2.ComputeEngineCredentials
-
- getTokenServerEncodedUrl() - Static method in class com.google.auth.oauth2.ComputeEngineCredentials
-
- getTokenServerUri() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
-
- getTokenServerUri() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
-
- getTokenServerUri() - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
-
- getTokenServerUri() - Method in class com.google.auth.oauth2.UserCredentials.Builder
-
- getTokenStore() - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
-
- getTokenStore() - Method in class com.google.auth.oauth2.UserAuthorizer
-
Returns the implementation of a component for long term storage of tokens.
- getTokenValue() - Method in class com.google.auth.oauth2.AccessToken
-
String representation of the access token.
- getUserAuthUri() - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
-
- GoogleCredentials - Class in com.google.auth.oauth2
-
Base type for credentials for authorizing calls to Google APIs using OAuth2.
- GoogleCredentials() - Constructor for class com.google.auth.oauth2.GoogleCredentials
-
Default constructor.
- GoogleCredentials(AccessToken) - Constructor for class com.google.auth.oauth2.GoogleCredentials
-
Constructor with explicit access token.
- GoogleCredentials.Builder - Class in com.google.auth.oauth2
-