Package | Description |
---|---|
com.google.auth.oauth2 |
Modifier and Type | Method and Description |
---|---|
UserCredentials |
UserCredentials.Builder.build() |
static UserCredentials |
UserCredentials.fromStream(InputStream credentialsStream)
Returns credentials defined by a JSON file stream using the format supported by the Cloud SDK.
|
static UserCredentials |
UserCredentials.fromStream(InputStream credentialsStream,
HttpTransportFactory transportFactory)
Returns credentials defined by a JSON file stream using the format supported by the Cloud SDK.
|
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.
|
UserCredentials |
UserAuthorizer.getCredentialsFromCode(String code,
URI baseUri,
Map<String,String> additionalParameters)
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.
|
Constructor and Description |
---|
Builder(UserCredentials credentials) |
Copyright © 2023 Google. All rights reserved.