| Package | Description |
|---|---|
| com.google.auth.oauth2 |
| Modifier and Type | Method and Description |
|---|---|
UserCredentials |
UserAuthorizer.getAndStoreCredentialsFromCode(String userId,
String code,
URI baseUri)
Exchanges an authorization code for tokens and stores them.
|
UserCredentials |
UserAuthorizer.getCredentials(String userId)
Attempts to retrieve credentials for the approved end user consent.
|
UserCredentials |
UserAuthorizer.getCredentialsFromCode(String code,
URI baseUri)
Returns a UserCredentials instance by exchanging an OAuth2 authorization code for tokens.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
UserAuthorizer.monitorCredentials(String userId,
UserCredentials credentials)
Adds a listen to rewrite the credentials when the tokens are refreshed.
|
void |
UserAuthorizer.storeCredentials(String userId,
UserCredentials credentials)
Puts the end user credentials in long term storage.
|
Copyright © 2015 Google. All rights reserved.