|
||||||||||
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.draft10.AuthorizationRequestUrl
com.google.api.client.googleapis.auth.oauth2.draft10.GoogleAuthorizationRequestUrl
GoogleAuthorizationCodeRequestUrl
or
GoogleBrowserClientRequestUrl
or
AuthorizationRequestUrl
@Deprecated public class GoogleAuthorizationRequestUrl
Google extension to the OAuth 2.0 (draft 10) URL builder for an authorization web page to allow the end user to authorize the application to access their protected resources.
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 {
GoogleAuthorizationRequestUrl builder =
new GoogleAuthorizationRequestUrl(CLIENT_ID, REDIRECT_URL, SCOPE);
response.sendRedirect(builder.build());
return;
}
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.api.client.auth.oauth2.draft10.AuthorizationRequestUrl |
---|
AuthorizationRequestUrl.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 | |
---|---|
static String |
AUTHORIZATION_SERVER_URL
Deprecated. Authorization server URL for end-user authorization. |
Fields inherited from class com.google.api.client.auth.oauth2.draft10.AuthorizationRequestUrl |
---|
clientId, redirectUri, responseType, scope, state |
Constructor Summary | |
---|---|
GoogleAuthorizationRequestUrl()
Deprecated. |
|
GoogleAuthorizationRequestUrl(String clientId,
String redirectUri,
String scope)
Deprecated. |
Method Summary | |
---|---|
String |
getAccessType()
Deprecated. [OPTIONAL] "offline" to request offline access from the user or "online" to
request online access ("online" is the default if null ). |
String |
getApprovalPrompt()
Deprecated. [OPTIONAL] "force" to force the approval UI to show or "auto" to request
auto-approval when possible ("auto" is the default if null ). |
GoogleAuthorizationRequestUrl |
setAccessType(String accessType)
Deprecated. [OPTIONAL] "offline" to request offline access from the user or "online" to
request online access ("online" is the default if null ). |
GoogleAuthorizationRequestUrl |
setApprovalPrompt(String approvalPrompt)
Deprecated. [OPTIONAL] "force" to force the approval UI to show or "auto" to request
auto-approval when possible ("auto" is the default if null ). |
Methods inherited from class com.google.api.client.http.GenericUrl |
---|
appendRawPath, build, clone, equals, getAll, getFirst, getFragment, getHost, getPathParts, getPort, getRawPath, getScheme, hashCode, setFragment, setHost, setPathParts, setPort, setRawPath, setScheme, toPathParts, toString |
Methods inherited from class com.google.api.client.util.GenericData |
---|
entrySet, get, getUnknownKeys, put, putAll, remove, set, setUnknownKeys |
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 static final String AUTHORIZATION_SERVER_URL
Constructor Detail |
---|
public GoogleAuthorizationRequestUrl()
public GoogleAuthorizationRequestUrl(String clientId, String redirectUri, String scope)
clientId
- client identifierredirectUri
- Absolute URI to which the authorization server will redirect the user-agent
to when the end-user authorization step is completedscope
- scope of the access request expressed as a list of space-delimited strings. If the
value contains multiple space-delimited strings, their order does not matter, and each
string adds an additional access range to the requested scope.Method Detail |
---|
public final String getApprovalPrompt()
"force"
to force the approval UI to show or "auto"
to request
auto-approval when possible ("auto"
is the default if null
).
public GoogleAuthorizationRequestUrl setApprovalPrompt(String approvalPrompt)
"force"
to force the approval UI to show or "auto"
to request
auto-approval when possible ("auto"
is the default if null
).
Subclasses may override the return value by calling super.
public final String getAccessType()
"offline"
to request offline access from the user or "online"
to
request online access ("online"
is the default if null
).
public GoogleAuthorizationRequestUrl setAccessType(String accessType)
"offline"
to request offline access from the user or "online"
to
request online access ("online"
is the default if null
).
Subclasses may override the return value by calling super.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |