Uses of Class
com.google.api.client.auth.oauth2.Credential
-
Packages that use Credential Package Description com.google.api.client.auth.oauth2 Implementation of the OAuth 2.0 Authorization Framework.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. -
-
Uses of Credential in com.google.api.client.auth.oauth2
Methods in com.google.api.client.auth.oauth2 that return Credential Modifier and Type Method Description CredentialCredential.Builder. build()Returns a new credential instance.CredentialAuthorizationCodeFlow. createAndStoreCredential(TokenResponse response, java.lang.String userId)Creates a new credential for the given user ID based on the given token response and store in the credential store.CredentialAuthorizationCodeFlow. loadCredential(java.lang.String userId)Loads the credential of the given user ID from the credential store.private CredentialAuthorizationCodeFlow. newCredential(java.lang.String userId)Returns a new credential instance based on the given user ID.CredentialCredential. setAccessToken(java.lang.String accessToken)Sets the access token.CredentialCredential. setExpirationTimeMilliseconds(java.lang.Long expirationTimeMilliseconds)Sets the expected expiration time in milliseconds ornullfor none.CredentialCredential. setExpiresInSeconds(java.lang.Long expiresIn)Sets the lifetime in seconds of the access token (for example 3600 for an hour) ornullfor none.CredentialCredential. setFromTokenResponse(TokenResponse tokenResponse)Sets theaccess token,refresh token(if available), andexpires-in timebased on the values from the token response.CredentialCredential. setRefreshToken(java.lang.String refreshToken)Sets the refresh token.Methods in com.google.api.client.auth.oauth2 with parameters of type Credential Modifier and Type Method Description voidCredentialStore. delete(java.lang.String userId, Credential credential)Deprecated.Deletes the credential of the given user ID.booleanCredentialStore. load(java.lang.String userId, Credential credential)Deprecated.Loads the credential for the given user ID.voidCredentialStoreRefreshListener. makePersistent(Credential credential)Deprecated.Stores the updated credential in the credential store.voidDataStoreCredentialRefreshListener. makePersistent(Credential credential)Stores the updated credential in the credential store.voidAuthorizationCodeFlow.CredentialCreatedListener. onCredentialCreated(Credential credential, TokenResponse tokenResponse)Notifies of a created credential after a successful token response inAuthorizationCodeFlow.createAndStoreCredential(com.google.api.client.auth.oauth2.TokenResponse, java.lang.String).voidCredentialRefreshListener. onTokenErrorResponse(Credential credential, TokenErrorResponse tokenErrorResponse)Notifies of an error token response fromrefreshToken().voidCredentialStoreRefreshListener. onTokenErrorResponse(Credential credential, TokenErrorResponse tokenErrorResponse)Deprecated.voidDataStoreCredentialRefreshListener. onTokenErrorResponse(Credential credential, TokenErrorResponse tokenErrorResponse)voidCredentialRefreshListener. onTokenResponse(Credential credential, TokenResponse tokenResponse)Notifies of a successful token response fromrefreshToken().voidCredentialStoreRefreshListener. onTokenResponse(Credential credential, TokenResponse tokenResponse)Deprecated.voidDataStoreCredentialRefreshListener. onTokenResponse(Credential credential, TokenResponse tokenResponse)voidCredentialStore. store(java.lang.String userId, Credential credential)Deprecated.Stores the credential of the given user ID.Constructors in com.google.api.client.auth.oauth2 with parameters of type Credential Constructor Description StoredCredential(Credential credential) -
Uses of Credential in com.google.api.client.extensions.java6.auth.oauth2
Methods in com.google.api.client.extensions.java6.auth.oauth2 that return Credential Modifier and Type Method Description CredentialAuthorizationCodeInstalledApp. authorize(java.lang.String userId)Authorizes the installed application to access user's protected data.Methods in com.google.api.client.extensions.java6.auth.oauth2 with parameters of type Credential Modifier and Type Method Description voidFileCredentialStore. delete(java.lang.String userId, Credential credential)Deprecated.booleanFileCredentialStore. load(java.lang.String userId, Credential credential)Deprecated.(package private) voidFilePersistedCredential. load(Credential credential)Deprecated.(package private) booleanFilePersistedCredentials. load(java.lang.String userId, Credential credential)Deprecated.voidFileCredentialStore. store(java.lang.String userId, Credential credential)Deprecated.(package private) voidFilePersistedCredential. store(Credential credential)Deprecated.Store information from the credential.(package private) voidFilePersistedCredentials. store(java.lang.String userId, Credential credential)Deprecated.Store information from the credential. -
Uses of Credential in com.google.api.client.extensions.servlet.auth.oauth2
Fields in com.google.api.client.extensions.servlet.auth.oauth2 declared as Credential Modifier and Type Field Description private CredentialAbstractAuthorizationCodeServlet. credentialPersisted credential associated with the current request ornullfor none.Methods in com.google.api.client.extensions.servlet.auth.oauth2 that return Credential Modifier and Type Method Description protected CredentialAbstractAuthorizationCodeServlet. getCredential()Return the persisted credential associated with the current request ornullfor none.Methods in com.google.api.client.extensions.servlet.auth.oauth2 with parameters of type Credential Modifier and Type Method Description protected voidAbstractAuthorizationCodeCallbackServlet. onSuccess(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Credential credential)Handles a successfully granted authorization.
-