Package | Description |
---|---|
com.google.api.client.auth.oauth2 |
Implementation of the OAuth 2.0 Authorization
Framework.
|
Modifier and Type | Class and Description |
---|---|
class |
AuthorizationCodeRequestUrl
OAuth 2.0 URL builder for an authorization web page to allow the end user to authorize the
application to access their protected resources and that returns an authorization code, as
specified in Authorization Code
Grant.
|
class |
BrowserClientRequestUrl
OAuth 2.0 URL builder for an authorization web page to allow the end user to authorize the
application to access their protected resources and that returns the access token to a browser
client using a scripting language such as JavaScript, as specified in Implicit Grant.
|
Modifier and Type | Method and Description |
---|---|
AuthorizationRequestUrl |
AuthorizationRequestUrl.clone() |
AuthorizationRequestUrl |
AuthorizationRequestUrl.set(String fieldName,
Object value) |
AuthorizationRequestUrl |
AuthorizationRequestUrl.setClientId(String clientId)
Sets the client identifier.
|
AuthorizationRequestUrl |
AuthorizationRequestUrl.setRedirectUri(String redirectUri)
Sets the URI that the authorization server directs the resource owner's user-agent back to the
client after a successful authorization grant (as specified in Redirection Endpoint) or
null for none. |
AuthorizationRequestUrl |
AuthorizationRequestUrl.setResponseTypes(Collection<String> responseTypes)
Sets the response type, which
must be
"code" for requesting an authorization code, "token" for requesting an
access token (implicit grant), or a list of registered extension values to join with a space. |
AuthorizationRequestUrl |
AuthorizationRequestUrl.setScopes(Collection<String> scopes)
Sets the list of scopes (as specified in Access Token Scope) or
null
for none. |
AuthorizationRequestUrl |
AuthorizationRequestUrl.setState(String state)
Sets the state (an opaque value used by the client to maintain state between the request and
callback, as mentioned in Registration Requirements) or
null for none. |
Copyright © 2011–2019 Google. All rights reserved.