|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.http.GenericUrl
com.google.api.client.auth.oauth2.AuthorizationRequestUrl
AuthorizationRequestUrl
@Deprecated public class AuthorizationRequestUrl
OAuth 2.0 URL builder for an authorization web page to allow the end user to authorize the application to access their protected resources as specified in Obtaining End-User Authorization.
Use AuthorizationResponse to parse the redirect response after the end user grants/denies
the request.
Sample usage for a web application:
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
AuthorizationRequestUrl builder =
new AuthorizationRequestUrl(BASE_AUTHORIZATION_URL, CLIENT_ID);
builder.redirectUri = REDIRECT_URL;
builder.scope = SCOPE;
response.sendRedirect(builder.build());
return;
}
| Nested Class Summary | |
|---|---|
static class |
AuthorizationRequestUrl.ResponseType
Deprecated. Response type enumeration that may be used for setting the responseType. |
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Field Summary | |
|---|---|
String |
clientId
Deprecated. (REQUIRED) The client identifier. |
String |
redirectUri
Deprecated. (REQUIRED, unless a redirection URI has been established between the client and authorization server via other means) An absolute URI to which the authorization server will redirect the user-agent to when the end-user authorization step is completed. |
String |
responseType
Deprecated. (REQUIRED) The requested response: an access token, an authorization code, or both. |
String |
scope
Deprecated. (OPTIONAL) The scope of the access request expressed as a list of space-delimited strings. |
String |
state
Deprecated. (OPTIONAL) An opaque value used by the client to maintain state between the request and callback. |
| Fields inherited from class com.google.api.client.http.GenericUrl |
|---|
fragment, host, pathParts, port, scheme |
| Fields inherited from class com.google.api.client.util.GenericData |
|---|
unknownFields |
| Constructor Summary | |
|---|---|
AuthorizationRequestUrl(String encodedAuthorizationServerUrl)
Deprecated. |
|
| Method Summary |
|---|
| Methods inherited from class com.google.api.client.http.GenericUrl |
|---|
appendRawPath, build, clone, equals, getAll, getFirst, getRawPath, hashCode, setRawPath, toPathParts, toString |
| Methods inherited from class com.google.api.client.util.GenericData |
|---|
entrySet, get, put, putAll, remove, set |
| Methods inherited from class java.util.AbstractMap |
|---|
clear, containsKey, containsValue, isEmpty, keySet, size, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public String responseType
AuthorizationRequestUrl.ResponseType to set this value.
By default, the response type is "code", but this may be overridden.
public String clientId
public String redirectUri
public String scope
public String state
| Constructor Detail |
|---|
public AuthorizationRequestUrl(String encodedAuthorizationServerUrl)
encodedAuthorizationServerUrl - encoded authorization server URL
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||