Skip navigation links
A B C D F G H I L M O R S T U 

A

AccessToken - Class in com.google.auth.oauth2
Represents a temporary OAuth2 access token and its expiration information.
AccessToken(String, Date) - Constructor for class com.google.auth.oauth2.AccessToken
 
addChangeListener(OAuth2Credentials.CredentialsChangedListener) - Method in class com.google.auth.oauth2.OAuth2Credentials
Adds a listener that is notified when the Credentials data changes.
AuthHttpConstants - Class in com.google.auth.http
Constants used for auth in http
AuthHttpConstants() - Constructor for class com.google.auth.http.AuthHttpConstants
 
AUTHORIZATION - Static variable in class com.google.auth.http.AuthHttpConstants
HTTP "Authentication" header

B

BEARER - Static variable in class com.google.auth.http.AuthHttpConstants
HTTP "Bearer" authentication scheme

C

ClientId - Class in com.google.auth.oauth2
An OAuth2 user authorization Client ID and associated information.
ClientId(String, String) - Constructor for class com.google.auth.oauth2.ClientId
Constructs a client ID using an explicit ID and secret
CloudShellCredentials - Class in com.google.auth.oauth2
OAuth2 credentials representing the built-in service account for Google Cloud Shell.
CloudShellCredentials(int) - Constructor for class com.google.auth.oauth2.CloudShellCredentials
 
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() - Constructor for class com.google.auth.oauth2.ComputeEngineCredentials
Constructor with minimum information and default behavior.
ComputeEngineCredentials(HttpTransport) - Constructor for class com.google.auth.oauth2.ComputeEngineCredentials
Constructor with overridden transport.
createScoped(Collection<String>) - Method in class com.google.auth.oauth2.GoogleCredentials
If the credentials support scopes, create a copy of the the idenitity 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
Indicates whether the credentials require scopes to be specified via a call to {link GoogleCredentials#createScoped} before use.
createScopedRequired() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
Returns whther the scopes are empty, meaning createScoped must be called before use.

D

delete(String) - Method in interface com.google.auth.oauth2.TokenStore
Remove the token data from storage for the given ID.

F

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 miniumum identifying information using PKCS#8 for the private key.
fromPkcs8(String, String, String, String, Collection<String>, HttpTransport, URI) - Static method in class com.google.auth.oauth2.ServiceAccountCredentials
Factory with miniumum 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, HttpTransport) - Static method in class com.google.auth.oauth2.GoogleCredentials
Returns credentials defined by a JSON file stream.

G

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 lengeth and a new line character.
getAccessToken() - Method in class com.google.auth.oauth2.OAuth2Credentials
 
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(HttpTransport) - 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
 
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
 
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
 
getClientId() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
getClientId() - Method in class com.google.auth.oauth2.UserAuthorizer
Returns the Client ID user to identify the OAuth2 consent prompt.
getClientSecret() - Method in class com.google.auth.oauth2.ClientId
Returns the secret associated with the Client ID.
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.
getExpirationTime() - Method in class com.google.auth.oauth2.AccessToken
Time when access token will expire.
getPrivateKey() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
 
getPrivateKey() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
getPrivateKeyId() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
 
getPrivateKeyId() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
getRefreshToken() - Method in class com.google.auth.oauth2.UserCredentials
 
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.ServiceAccountJwtAccessCredentials
Provide the request metadata by putting an access JWT directly in the metadata.
getScopes() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
 
getScopes() - Method in class com.google.auth.oauth2.UserAuthorizer
Returns the scopes defining the user consent.
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.
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.

H

handleResponse(HttpRequest, HttpResponse, boolean) - Method in class com.google.auth.http.HttpCredentialsAdapter
hasRequestMetadata() - Method in class com.google.auth.oauth2.OAuth2Credentials
 
hasRequestMetadata() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
hasRequestMetadataOnly() - Method in class com.google.auth.oauth2.OAuth2Credentials
 
hasRequestMetadataOnly() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
HttpCredentialsAdapter - Class in com.google.auth.http
A wrapper for using Credentials with the Google API Client Libraries for Java with Http.
HttpCredentialsAdapter(Credentials) - Constructor for class com.google.auth.http.HttpCredentialsAdapter
 

I

initialize(HttpRequest) - Method in class com.google.auth.http.HttpCredentialsAdapter
Initialize the HTTP request prior to execution.

L

load(String) - Method in interface com.google.auth.oauth2.TokenStore
Load the token data from storage for the given ID.

M

monitorCredentials(String, UserCredentials) - Method in class com.google.auth.oauth2.UserAuthorizer
Adds a listen to rewrite the credentials when the tokens are refreshed.

O

OAuth2Credentials - Class in com.google.auth.oauth2
Base type for Credentials using OAuth2.
OAuth2Credentials() - Constructor for class com.google.auth.oauth2.OAuth2Credentials
Default constructor.
OAuth2Credentials(AccessToken) - Constructor for class com.google.auth.oauth2.OAuth2Credentials
Constructor with explicit access token.
OAuth2Credentials.CredentialsChangedListener - Interface in com.google.auth.oauth2
Listener for changes to credentials.
onChanged(OAuth2Credentials) - Method in interface com.google.auth.oauth2.OAuth2Credentials.CredentialsChangedListener
Notifies that the credentials have changed.

R

refresh() - Method in class com.google.auth.oauth2.OAuth2Credentials
Refresh the token by discarding the cached token and metadata.
refresh() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
Discard any cached data
refreshAccessToken() - Method in class com.google.auth.oauth2.CloudShellCredentials
 
refreshAccessToken() - Method in class com.google.auth.oauth2.ComputeEngineCredentials
Refresh the access token by getting it from the GCE metadata server
refreshAccessToken() - Method in class com.google.auth.oauth2.OAuth2Credentials
Method to refresh the access token according to the specific type of credentials.
refreshAccessToken() - Method in class com.google.auth.oauth2.ServiceAccountCredentials
Refreshes the OAuth2 access token by getting a new access token using a JSON Web Token (JWT).
refreshAccessToken() - Method in class com.google.auth.oauth2.UserCredentials
Refreshes the OAuth2 access token by getting a new access token from the refresh token
revokeAuthorization(String) - Method in class com.google.auth.oauth2.UserAuthorizer
Revokes the authorization for tokens stored for the user.

S

ServiceAccountCredentials - Class in com.google.auth.oauth2
OAuth2 credentials representing a Service Account for calling Google APIs.
ServiceAccountCredentials(String, String, PrivateKey, String, Collection<String>) - Constructor for class com.google.auth.oauth2.ServiceAccountCredentials
Constructor with minimum identifying information.
ServiceAccountCredentials(String, String, PrivateKey, String, Collection<String>, HttpTransport, URI) - Constructor for class com.google.auth.oauth2.ServiceAccountCredentials
Constructor with minimum identifying information and custom HTTP transport.
ServiceAccountJwtAccessCredentials - Class in com.google.auth.oauth2
Service Account credentials for calling Google APIs using a JWT directly for access.
ServiceAccountJwtAccessCredentials(String, String, PrivateKey, String) - Constructor for class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
Constructor with minimum identifying information.
ServiceAccountJwtAccessCredentials(String, String, PrivateKey, String, URI) - Constructor for class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
Constructor with full information.
store(String, String) - Method in interface com.google.auth.oauth2.TokenStore
Put the token data into storage for the given ID.
storeCredentials(String, UserCredentials) - Method in class com.google.auth.oauth2.UserAuthorizer
Puts the end user credentials in long term storage.

T

TokenStore - Interface in com.google.auth.oauth2
Interface for long term storage of tokens

U

UserAuthorizer - Class in com.google.auth.oauth2
Handles an interactive 3-Legged-OAuth2 (3LO) user consent authorization.
UserAuthorizer(ClientId, Collection<String>, TokenStore) - Constructor for class com.google.auth.oauth2.UserAuthorizer
Constructor with minimal parameters.
UserAuthorizer(ClientId, Collection<String>, TokenStore, URI) - Constructor for class com.google.auth.oauth2.UserAuthorizer
Constructor with common parameters.
UserAuthorizer(ClientId, Collection<String>, TokenStore, URI, HttpTransport, URI, URI) - Constructor for class com.google.auth.oauth2.UserAuthorizer
Constructor with all parameters.
UserCredentials - Class in com.google.auth.oauth2
OAuth2 Credentials representing a user's identity and consent.
UserCredentials(String, String, String) - Constructor for class com.google.auth.oauth2.UserCredentials
Constructor with minimum information and default behavior.
UserCredentials(String, String, String, AccessToken) - Constructor for class com.google.auth.oauth2.UserCredentials
Constructor to allow both refresh token and initial access token for 3LO scenarios.
UserCredentials(String, String, String, AccessToken, HttpTransport, URI) - Constructor for class com.google.auth.oauth2.UserCredentials
Constructor with all parameters allowing custom transport and server URL.
A B C D F G H I L M O R S T U 
Skip navigation links

Copyright © 2015 Google. All rights reserved.