Package | Description |
---|---|
com.google.api.client.auth.oauth2 |
Implementation of the OAuth 2.0 Authorization
Framework.
|
com.google.api.client.auth.openidconnect |
Modifier and Type | Class and 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.
|
Modifier and Type | Method and Description |
---|---|
TokenRequest |
TokenRequest.set(String fieldName,
Object value) |
TokenRequest |
TokenRequest.setClientAuthentication(HttpExecuteInterceptor clientAuthentication)
Sets the client authentication or
null 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(HttpRequestInitializer requestInitializer)
Sets the HTTP request initializer or
null for none. |
TokenRequest |
TokenRequest.setResponseClass(Class<? extends TokenResponse> responseClass)
Sets the TokenResponse class to allow specifying object parsing.
|
TokenRequest |
TokenRequest.setScopes(Collection<String> scopes)
Sets the list of scopes (as specified in Access Token Scope) or
null
for none. |
TokenRequest |
TokenRequest.setTokenServerUrl(GenericUrl tokenServerUrl)
Sets the token server URL.
|
Modifier and Type | Method and Description |
---|---|
static IdTokenResponse |
IdTokenResponse.execute(TokenRequest tokenRequest)
Executes the given ID token request, and returns the parsed ID token response.
|
Copyright © 2011–2022 Google. All rights reserved.