- 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 Protobufers, preceeded by the message length and a
new line character.
- getAccessToken() - Method in class com.google.auth.oauth2.OAuth2Credentials.Builder
-
- getAccessToken() - Method in class com.google.auth.oauth2.OAuth2Credentials
-
- 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.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
-
- 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.ServiceAccountCredentials.Builder
-
- getHttpTransportFactory() - Method in class com.google.auth.oauth2.UserAuthorizer.Builder
-
- getHttpTransportFactory() - Method in class com.google.auth.oauth2.UserCredentials.Builder
-
- getMetadataServerUrl(DefaultCredentialsProvider) - Static method in class com.google.auth.oauth2.ComputeEngineCredentials
-
- getMetadataServerUrl() - Static method in class com.google.auth.oauth2.ComputeEngineCredentials
-
- 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.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
-
- 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, 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, 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.
- 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.
- getServiceAccountUser() - Method in class com.google.auth.oauth2.ServiceAccountCredentials.Builder
-
- getServiceAccountUser() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
-
- 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.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
-
Deprecated.
- GoogleCredentials.Builder - Class in com.google.auth.oauth2
-