Uses of Class
com.google.api.client.auth.oauth2.TokenResponse
Packages that use TokenResponse
-
Uses of TokenResponse in com.google.api.client.auth.oauth2
Methods in com.google.api.client.auth.oauth2 that return TokenResponseModifier and TypeMethodDescriptionTokenResponse.clone()TokenRequest.execute()Executes request for an access token, and returns the parsed access token response.protected TokenResponseCredential.executeRefreshToken()Executes a request for new credentials from the token server.TokenResponse.setAccessToken(String accessToken) Sets the access token issued by the authorization server.TokenResponse.setExpiresInSeconds(Long expiresInSeconds) Sets the lifetime in seconds of the access token (for example 3600 for an hour) ornullfor none.TokenResponse.setRefreshToken(String refreshToken) Sets the refresh token which can be used to obtain new access tokens using the same authorization grant ornullfor none.Sets the scope of the access token ornullfor none.TokenResponse.setTokenType(String tokenType) Sets the token type (as specified in Access Token Types).Methods in com.google.api.client.auth.oauth2 with parameters of type TokenResponseModifier and TypeMethodDescriptionAuthorizationCodeFlow.createAndStoreCredential(TokenResponse response, String userId) Creates a new credential for the given user ID based on the given token response and store in the credential store.voidAuthorizationCodeFlow.CredentialCreatedListener.onCredentialCreated(Credential credential, TokenResponse tokenResponse) Notifies of a created credential after a successful token response inAuthorizationCodeFlow.createAndStoreCredential(TokenResponse, String).voidCredentialRefreshListener.onTokenResponse(Credential credential, TokenResponse tokenResponse) Notifies of a successful token response fromCredential.refreshToken().voidCredentialStoreRefreshListener.onTokenResponse(Credential credential, TokenResponse tokenResponse) Deprecated.voidDataStoreCredentialRefreshListener.onTokenResponse(Credential credential, TokenResponse tokenResponse) Credential.setFromTokenResponse(TokenResponse tokenResponse) Sets theaccess token,refresh token(if available), andexpires-in timebased 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.openidconnectModifier and TypeClassDescriptionclassBeta
OAuth ID Connect JSON model for a successful access token response as specified in OpenID Connect Basic Client Profile 1.0 (draft 23).