Uses of Class
com.google.auth.oauth2.UserCredentials
-
Packages that use UserCredentials Package Description com.google.auth.oauth2 -
-
Uses of UserCredentials in com.google.auth.oauth2
Methods in com.google.auth.oauth2 that return UserCredentials Modifier and Type Method 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.Methods in com.google.auth.oauth2 with parameters of type UserCredentials Modifier and Type Method 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.Constructors in com.google.auth.oauth2 with parameters of type UserCredentials Constructor Description Builder(UserCredentials credentials)
-