Uses of Class
com.google.api.client.auth.oauth2.TokenResponse
-
Packages that use TokenResponse Package Description com.google.api.client.auth.oauth2 Implementation of the OAuth 2.0 Authorization Framework.com.google.api.client.auth.openidconnect -
-
Uses of TokenResponse in com.google.api.client.auth.oauth2
Methods in com.google.api.client.auth.oauth2 that return TokenResponse Modifier and Type Method Description TokenResponse
TokenResponse. clone()
TokenResponse
TokenRequest. execute()
Executes request for an access token, and returns the parsed access token response.protected TokenResponse
Credential. executeRefreshToken()
Executes a request for new credentials from the token server.TokenResponse
TokenResponse. set(java.lang.String fieldName, java.lang.Object value)
TokenResponse
TokenResponse. setAccessToken(java.lang.String accessToken)
Sets the access token issued by the authorization server.TokenResponse
TokenResponse. setExpiresInSeconds(java.lang.Long expiresInSeconds)
Sets the lifetime in seconds of the access token (for example 3600 for an hour) ornull
for none.TokenResponse
TokenResponse. setRefreshToken(java.lang.String refreshToken)
Sets the refresh token which can be used to obtain new access tokens using the same authorization grant ornull
for none.TokenResponse
TokenResponse. setScope(java.lang.String scope)
Sets the scope of the access token ornull
for none.TokenResponse
TokenResponse. setTokenType(java.lang.String tokenType)
Sets the token type (as specified in Access Token Types).Methods in com.google.api.client.auth.oauth2 with parameters of type TokenResponse Modifier and Type Method Description 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.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. onTokenResponse(Credential credential, TokenResponse tokenResponse)
Notifies of a successful token response fromCredential.refreshToken()
.void
CredentialStoreRefreshListener. onTokenResponse(Credential credential, TokenResponse tokenResponse)
Deprecated.void
DataStoreCredentialRefreshListener. onTokenResponse(Credential credential, TokenResponse tokenResponse)
Credential
Credential. setFromTokenResponse(TokenResponse tokenResponse)
Sets theaccess token
,refresh token
(if available), andexpires-in time
based on the values from the token response. -
Uses of TokenResponse in com.google.api.client.auth.openidconnect
Subclasses of TokenResponse in com.google.api.client.auth.openidconnect Modifier and Type Class Description class
IdTokenResponse
Beta
OAuth ID Connect JSON model for a successful access token response as specified in OpenID Connect Basic Client Profile 1.0 (draft 23).
-