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 Credential
Credential.Builder. build()
Returns a new credential instance.Credential
AuthorizationCodeFlow. 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.Credential
AuthorizationCodeFlow. loadCredential(java.lang.String userId)
Loads the credential of the given user ID from the credential store.private Credential
AuthorizationCodeFlow. newCredential(java.lang.String userId)
Returns a new credential instance based on the given user ID.Credential
Credential. setAccessToken(java.lang.String accessToken)
Sets the access token.Credential
Credential. setExpirationTimeMilliseconds(java.lang.Long expirationTimeMilliseconds)
Sets the expected expiration time in milliseconds ornull
for none.Credential
Credential. setExpiresInSeconds(java.lang.Long expiresIn)
Sets the lifetime in seconds of the access token (for example 3600 for an hour) ornull
for none.Credential
Credential. setFromTokenResponse(TokenResponse tokenResponse)
Sets theaccess token
,refresh token
(if available), andexpires-in time
based on the values from the token response.Credential
Credential. 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 void
CredentialStore. delete(java.lang.String userId, Credential credential)
Deprecated.Deletes the credential of the given user ID.boolean
CredentialStore. load(java.lang.String userId, Credential credential)
Deprecated.Loads the credential for the given user ID.void
CredentialStoreRefreshListener. makePersistent(Credential credential)
Deprecated.Stores the updated credential in the credential store.void
DataStoreCredentialRefreshListener. makePersistent(Credential credential)
Stores the updated credential in the credential store.void
AuthorizationCodeFlow.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)
.void
CredentialRefreshListener. onTokenErrorResponse(Credential credential, TokenErrorResponse tokenErrorResponse)
Notifies of an error token response fromrefreshToken()
.void
CredentialStoreRefreshListener. onTokenErrorResponse(Credential credential, TokenErrorResponse tokenErrorResponse)
Deprecated.void
DataStoreCredentialRefreshListener. onTokenErrorResponse(Credential credential, TokenErrorResponse tokenErrorResponse)
void
CredentialRefreshListener. onTokenResponse(Credential credential, TokenResponse tokenResponse)
Notifies of a successful token response fromrefreshToken()
.void
CredentialStoreRefreshListener. onTokenResponse(Credential credential, TokenResponse tokenResponse)
Deprecated.void
DataStoreCredentialRefreshListener. onTokenResponse(Credential credential, TokenResponse tokenResponse)
void
CredentialStore. 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 Credential
AuthorizationCodeInstalledApp. 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 void
FileCredentialStore. delete(java.lang.String userId, Credential credential)
Deprecated.boolean
FileCredentialStore. load(java.lang.String userId, Credential credential)
Deprecated.(package private) void
FilePersistedCredential. load(Credential credential)
Deprecated.(package private) boolean
FilePersistedCredentials. load(java.lang.String userId, Credential credential)
Deprecated.void
FileCredentialStore. store(java.lang.String userId, Credential credential)
Deprecated.(package private) void
FilePersistedCredential. store(Credential credential)
Deprecated.Store information from the credential.(package private) void
FilePersistedCredentials. 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 Credential
AbstractAuthorizationCodeServlet. credential
Persisted credential associated with the current request ornull
for none.Methods in com.google.api.client.extensions.servlet.auth.oauth2 that return Credential Modifier and Type Method Description protected Credential
AbstractAuthorizationCodeServlet. getCredential()
Return the persisted credential associated with the current request ornull
for none.Methods in com.google.api.client.extensions.servlet.auth.oauth2 with parameters of type Credential Modifier and Type Method Description protected void
AbstractAuthorizationCodeCallbackServlet. onSuccess(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, Credential credential)
Handles a successfully granted authorization.
-