| Package | Description |
|---|---|
| com.google.api.client.auth.oauth2 |
OAuth 2.0 authorization as specified in the OAuth 2.0 Protocol.
|
| 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.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(Iterable<String> responseTypes)
Sets the list of response types, each of which must be
"code", "token", or a
registered extension value (as specified in Response Type). |
AuthorizationRequestUrl |
AuthorizationRequestUrl.setResponseTypes(String... responseTypes)
Sets the list of response types, each of which must be
"code", "token", or a
registered extension value (as specified in Response Type). |
AuthorizationRequestUrl |
AuthorizationRequestUrl.setScopes(Iterable<String> scopes)
Sets the list of scopes (as specified in Access Token Scope) or
null for none. |
AuthorizationRequestUrl |
AuthorizationRequestUrl.setScopes(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-2012 Google. All Rights Reserved.