Package | Description |
---|---|
org.restlet.ext.oauth |
Support for OAuth 2.0 HTTP authentication.
|
Modifier and Type | Method and Description |
---|---|
static OAuthException |
OAuthException.toOAuthException(Form parameters)
Deprecated.
Returns a new
OAuthException based on the given parameters. |
static OAuthException |
OAuthException.toOAuthException(org.json.JSONObject json)
Deprecated.
Returns a new
OAuthException based on the JSON payload. |
static OAuthException |
OAuthException.toOAuthException(java.lang.Throwable exception)
Deprecated.
Returns a new
OAuthException based on the given exception. |
Modifier and Type | Method and Description |
---|---|
protected Representation |
AuthorizationBaseServerResource.getErrorPage(java.lang.String errPage,
OAuthException ex)
Deprecated.
Helper method to format error responses according to OAuth2 spec.
|
static Representation |
OAuthServerResource.responseErrorRepresentation(OAuthException ex)
Deprecated.
Returns the representation of the given error.
|
protected void |
AuthorizationBaseServerResource.sendError(java.lang.String redirectionUri,
OAuthException ex,
java.lang.String state,
boolean fragment)
Deprecated.
Helper method to format error responses according to OAuth2 spec.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AccessTokenServerResource.ensureGrantTypeAllowed(org.restlet.ext.oauth.internal.Client client,
GrantType grantType)
Deprecated.
|
protected org.restlet.ext.oauth.internal.Client |
AccessTokenServerResource.getAuthenticatedClient()
Deprecated.
|
protected org.restlet.ext.oauth.internal.AuthSession |
AuthorizationBaseServerResource.getAuthSession()
Deprecated.
Returns the current authorization session.
|
protected org.restlet.ext.oauth.internal.Client |
OAuthServerResource.getClient(Form parameters)
Deprecated.
Get request parameter "client_id".
|
protected org.restlet.ext.oauth.internal.Client |
AccessTokenServerResource.getClient(Form params)
Deprecated.
|
protected java.lang.String |
AccessTokenServerResource.getCode(Form parameters)
Deprecated.
Returns the value of the request parameter "code".
|
protected GrantType |
AccessTokenServerResource.getGrantType(Form parameters)
Deprecated.
Returns the value of the request parameter "grant_type".
|
protected java.lang.String |
AccessTokenServerResource.getPassword(Form parameters)
Deprecated.
Returns the value of the request parameter "password".
|
protected org.restlet.ext.oauth.internal.RedirectionURI |
AuthorizationServerResource.getRedirectionURI(Form parameters,
org.restlet.ext.oauth.internal.Client client)
Deprecated.
Get request parameter "redirect_uri".
|
protected java.lang.String |
AccessTokenServerResource.getRedirectURI(Form parameters)
Deprecated.
Returns the value of the request parameter "redirect_uri".
|
protected java.lang.String |
AccessTokenServerResource.getRefreshToken(Form parameters)
Deprecated.
Returns the value of the request parameter "refresh_token".
|
protected ResponseType[] |
AuthorizationServerResource.getResponseType(Form parameters)
Deprecated.
Returns the value of the request parameter "response_type".
|
protected java.lang.String[] |
OAuthServerResource.getScope(Form parameters)
Deprecated.
Get request parameter "scope".
|
protected java.lang.String |
AccessTokenServerResource.getUsername(Form parameters)
Deprecated.
Returns the value of the request parameter "username".
|
protected void |
AuthPageServerResource.handleAction(java.lang.String action,
java.lang.String[] grantedScope)
Deprecated.
Handles the given action and prepare the response to the user.
|
Representation |
AuthorizationServerResource.requestAuthorization()
Deprecated.
|
Representation |
AuthorizationServerResource.requestAuthorization(Form params)
Deprecated.
Checks that all incoming requests have a type parameter.
|
Representation |
AuthorizationServerResource.requestAuthorization(Representation input)
Deprecated.
|
org.restlet.ext.oauth.internal.Token |
FacebookAccessTokenClientResource.requestToken(OAuthParameters parameters)
Deprecated.
|
org.restlet.ext.oauth.internal.Token |
AccessTokenClientResource.requestToken(OAuthParameters parameters)
Deprecated.
Returns the OAuth token by requesting the remote authorization server.
|
Representation |
AccessTokenServerResource.requestToken(Representation input)
Deprecated.
Handles the
Post request. |
Representation |
AuthPageServerResource.showPage()
Deprecated.
Entry point to the Authorization page resource.
|
Copyright © 2005-2020 Restlet.