Uses of Class
com.google.auth.oauth2.UserCredentials
Packages that use UserCredentials
-
Uses of UserCredentials in com.google.auth.oauth2
Methods in com.google.auth.oauth2 that return UserCredentialsModifier and TypeMethodDescriptionUserCredentials.Builder.build()(package private) static UserCredentialsUserCredentials.fromJson(Map<String, Object> json, HttpTransportFactory transportFactory) Returns user credentials defined by JSON contents using the format supported by the Cloud SDK.static UserCredentialsUserCredentials.fromStream(InputStream credentialsStream) Returns credentials defined by a JSON file stream using the format supported by the Cloud SDK.static UserCredentialsUserCredentials.fromStream(InputStream credentialsStream, HttpTransportFactory transportFactory) Returns credentials defined by a JSON file stream using the format supported by the Cloud SDK.UserAuthorizer.getAndStoreCredentialsFromCode(String userId, String code, URI baseUri) Exchanges an authorization code for tokens and stores them.UserAuthorizer.getCredentials(String userId) Attempts to retrieve credentials for the approved end user consent.UserAuthorizer.getCredentialsFromCode(String code, URI baseUri) Returns a UserCredentials instance by exchanging an OAuth2 authorization code for tokens.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 UserCredentialsModifier and TypeMethodDescriptionprotected voidUserAuthorizer.monitorCredentials(String userId, UserCredentials credentials) Adds a listen to rewrite the credentials when the tokens are refreshed.voidUserAuthorizer.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