public class GTImplicit
extends java.lang.Object
GTImplicit
supports implicit grant type flow
The OAuth 2.0 Authorization Protocol draftModifier and Type | Method and Description |
---|---|
static Request |
createAuthorizationRequest(OAuth2 data,
java.lang.String redirect_uri,
java.lang.String scope,
java.lang.String state)
creates an authorization request
A successful response to this request should have result code 302 and 'Location' field with
an URI that the user should visit to grant requested permissions.
|
static AccessToken |
getAccessToken(IResponse r)
Extracts an access token from a response from the server
|
public static Request createAuthorizationRequest(OAuth2 data, java.lang.String redirect_uri, java.lang.String scope, java.lang.String state)
The parameters redirect_uri
, scope
and state
may be
null
.
data
- a reference to the OAuth2 object instance that contains
information about authorization processredirect_uri
- redirection endpointscope
- a scope of the requeststate
- An opaque value used by the client to maintain state
between the request and callbackpublic static AccessToken getAccessToken(IResponse r) throws OAuth2Exception, java.io.IOException
r
- a response from an authorization serverOAuth2Exception
- if an OAuth specific error occursjava.io.IOException
- if an I/O error occursCopyright © 2013, 2014, Oracle and/or its affiliates. All rights reserved.