Package | Description |
---|---|
com.google.api.client.auth.oauth2 |
Implementation of the OAuth 2.0 Authorization
Framework.
|
com.google.api.client.extensions.appengine.auth.oauth2 |
OAuth 2.0 utilities that help simplify the authorization flow on Google App Engine.
|
com.google.api.client.extensions.java6.auth.oauth2 |
OAuth 2.0 utilities that help simplify the authorization flow on Java 6.
|
com.google.api.client.extensions.servlet.auth.oauth2 |
OAuth 2.0 utilities that help simplify the authorization flow in HTTP servlets.
|
Modifier and Type | Method and Description |
---|---|
Credential |
Credential.Builder.build()
Returns a new credential instance.
|
Credential |
AuthorizationCodeFlow.createAndStoreCredential(TokenResponse response,
String userId)
Creates a new credential for the given user ID based on the given token response and stores it
in the credential store.
|
Credential |
AuthorizationCodeFlow.loadCredential(String userId)
Loads the credential of the given user ID from the credential store.
|
Credential |
Credential.setAccessToken(String accessToken)
Sets the access token.
|
Credential |
Credential.setExpirationTimeMilliseconds(Long expirationTimeMilliseconds)
Sets the expected expiration time in milliseconds relative to the
Java epoch , or null for none. |
Credential |
Credential.setExpiresInSeconds(Long expiresIn)
Sets the lifetime in seconds of the access token (for example 3600 for an hour from now) or
null for none. |
Credential |
Credential.setFromTokenResponse(TokenResponse tokenResponse)
Sets the
access token , refresh token (if
available), and expires-in time based on the values from the token
response. |
Credential |
Credential.setRefreshToken(String refreshToken)
Sets the refresh token.
|
Modifier and Type | Method and Description |
---|---|
void |
CredentialStore.delete(String userId,
Credential credential)
Deprecated.
Deletes the credential of the given user ID.
|
boolean |
CredentialStore.load(String userId,
Credential credential)
Deprecated.
Loads the credential for the given user ID.
|
void |
CredentialStoreRefreshListener.makePersistent(Credential credential)
Deprecated.
Stores the updated credential in the credential store.
|
void |
DataStoreCredentialRefreshListener.makePersistent(Credential credential)
Stores the updated credential in the credential store.
|
void |
AuthorizationCodeFlow.CredentialCreatedListener.onCredentialCreated(Credential credential,
TokenResponse tokenResponse)
Notifies of a created credential after a successful token response in
AuthorizationCodeFlow.createAndStoreCredential(com.google.api.client.auth.oauth2.TokenResponse, java.lang.String) . |
void |
CredentialStoreRefreshListener.onTokenErrorResponse(Credential credential,
TokenErrorResponse tokenErrorResponse)
Deprecated.
|
void |
DataStoreCredentialRefreshListener.onTokenErrorResponse(Credential credential,
TokenErrorResponse tokenErrorResponse) |
void |
CredentialRefreshListener.onTokenErrorResponse(Credential credential,
TokenErrorResponse tokenErrorResponse)
Notifies of an error token response from
refreshToken() . |
void |
CredentialStoreRefreshListener.onTokenResponse(Credential credential,
TokenResponse tokenResponse)
Deprecated.
|
void |
DataStoreCredentialRefreshListener.onTokenResponse(Credential credential,
TokenResponse tokenResponse) |
void |
CredentialRefreshListener.onTokenResponse(Credential credential,
TokenResponse tokenResponse)
Notifies of a successful token response from
refreshToken() . |
void |
CredentialStore.store(String userId,
Credential credential)
Deprecated.
Stores the credential of the given user ID.
|
Constructor and Description |
---|
StoredCredential(Credential credential) |
Modifier and Type | Method and Description |
---|---|
void |
AppEngineCredentialStore.delete(String userId,
Credential credential)
Deprecated.
|
boolean |
AppEngineCredentialStore.load(String userId,
Credential credential)
Deprecated.
|
void |
AppEngineCredentialStore.store(String userId,
Credential credential)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Credential |
AuthorizationCodeInstalledApp.authorize(String userId)
Authorizes the installed application to access user's protected data.
|
Modifier and Type | Method and Description |
---|---|
void |
FileCredentialStore.delete(String userId,
Credential credential)
Deprecated.
|
boolean |
FileCredentialStore.load(String userId,
Credential credential)
Deprecated.
|
void |
FileCredentialStore.store(String userId,
Credential credential)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Credential |
AbstractAuthorizationCodeServlet.getCredential()
Return the persisted credential associated with the current request or
null for none. |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractAuthorizationCodeCallbackServlet.onSuccess(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
Credential credential)
Handles a successfully granted authorization.
|
Copyright © 2011–2022 Google. All rights reserved.