Uses of Class
com.google.api.client.auth.oauth2.TokenRequest
-
Packages that use TokenRequest Package Description com.google.api.client.auth.oauth2 Implementation of the OAuth 2.0 Authorization Framework.com.google.api.client.auth.openidconnect -
-
Uses of TokenRequest in com.google.api.client.auth.oauth2
Subclasses of TokenRequest in com.google.api.client.auth.oauth2 Modifier and Type Class Description class
AuthorizationCodeTokenRequest
OAuth 2.0 request for an access token using an authorization code as specified in Access Token Request.class
ClientCredentialsTokenRequest
OAuth 2.0 request for an access token using only its client credentials as specified in Client Credentials Grant.class
PasswordTokenRequest
OAuth 2.0 request for an access token using the user's username and password as specified in Resource Owner Password Credentials Grant.class
RefreshTokenRequest
OAuth 2.0 request to refresh an access token using a refresh token as specified in Refreshing an Access Token.Methods in com.google.api.client.auth.oauth2 that return TokenRequest Modifier and Type Method Description TokenRequest
TokenRequest. set(String fieldName, Object value)
TokenRequest
TokenRequest. setClientAuthentication(com.google.api.client.http.HttpExecuteInterceptor clientAuthentication)
Sets the client authentication ornull
for none.TokenRequest
TokenRequest. setGrantType(String grantType)
Sets the grant type ("authorization_code"
,"password"
,"client_credentials"
,"refresh_token"
or absolute URI of the extension grant type).TokenRequest
TokenRequest. setRequestInitializer(com.google.api.client.http.HttpRequestInitializer requestInitializer)
Sets the HTTP request initializer ornull
for none.TokenRequest
TokenRequest. setScopes(Collection<String> scopes)
Sets the list of scopes (as specified in Access Token Scope) ornull
for none.TokenRequest
TokenRequest. setTokenServerUrl(com.google.api.client.http.GenericUrl tokenServerUrl)
Sets the token server URL. -
Uses of TokenRequest in com.google.api.client.auth.openidconnect
Methods in com.google.api.client.auth.openidconnect with parameters of type TokenRequest Modifier and Type Method Description static IdTokenResponse
IdTokenResponse. execute(TokenRequest tokenRequest)
Executes the given ID token request, and returns the parsed ID token response.
-