Skip navigation links
A B C F G H I O R S 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
 
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

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.

F

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) - 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.
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.
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
 
getAuthPort() - Method in class com.google.auth.oauth2.CloudShellCredentials
 
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.ServiceAccountCredentials
 
getClientId() - Method in class com.google.auth.oauth2.ServiceAccountJwtAccessCredentials
 
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
 
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
 
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.

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.

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
Abstract 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

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) - 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.

U

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, GenericUrl) - Constructor for class com.google.auth.oauth2.UserCredentials
Constructor with all parameters allowing custom transport and server URL.
A B C F G H I O R S U 
Skip navigation links

Copyright © 2015 Google. All rights reserved.