@Deprecated public class AccessTokenClientResource extends ClientResource implements OAuthResourceDefs
requestToken(OAuthParameters) method to retrieve the token.ACCESS_TOKEN, CLIENT_ID, CLIENT_SECRET, CODE, ERROR, ERROR_DESC, ERROR_URI, EXPIRES_IN, GRANT_TYPE, PASSWORD, REDIR_URI, REFRESH_TOKEN, RESPONSE_TYPE, SCOPE, STATE, TOKEN_TYPE, TOKEN_TYPE_BEARER, TOKEN_TYPE_MAC, USERNAME| Constructor and Description |
|---|
AccessTokenClientResource(Reference tokenUri)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Representation |
handleInbound(Response response)
Deprecated.
Handles the inbound call.
|
org.restlet.ext.oauth.internal.Token |
requestToken(OAuthParameters parameters)
Deprecated.
Returns the OAuth token by requesting the remote authorization server.
|
void |
setAuthenticationMethod(ChallengeScheme scheme)
Deprecated.
|
void |
setClientCredentials(java.lang.String clientId,
java.lang.String clientSecret)
Deprecated.
|
protected void |
setupBodyClientCredentials(OAuthParameters parameters)
Deprecated.
By default adds the clientId and clientSecret (if any) values to the set of Oauth parameters.
Called from requestToken(OAuthParameters) method. |
accept, accept, addQueryParameter, addQueryParameter, addQueryParameters, addSegment, create, create, create, createNext, createRequest, createResponse, delete, delete, delete, doError, doError, doError, doRelease, finalize, get, get, get, getAttribute, getChild, getChild, getChild, getChild, getMaxRedirects, getNext, getOnResponse, getOnSent, getParent, getParent, getRetryAttempts, getRetryDelay, handle, handle, handle, handle, handle, handle, handle, handle, handle, handleOutbound, hasNext, head, head, isFollowingRedirects, isRequestEntityBuffering, isResponseEntityBuffering, isRetryOnError, options, options, options, patch, patch, patch, patch, post, post, post, post, put, put, put, put, redirect, retry, setAttribute, setChallengeResponse, setChallengeResponse, setClientInfo, setConditions, setCookies, setEntityBuffering, setFollowingRedirects, setHostRef, setHostRef, setLoggable, setMaxRedirects, setMethod, setNext, setOnResponse, setOnSent, setOriginalRef, setProtocol, setProxyChallengeResponse, setProxyChallengeResponse, setRanges, setReference, setReference, setReferrerRef, setReferrerRef, setRequestEntityBuffering, setResponseEntityBuffering, setRetryAttempts, setRetryDelay, setRetryOnError, wrap, wrapdoCatch, doError, doInit, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getConnegService, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMatrixValue, getMaxForwards, getMetadataService, getMethod, getOriginalRef, getProtocol, getProxyChallengeRequests, getProxyChallengeResponse, getQuery, getQueryValue, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestCacheDirectives, getRequestEntity, getResponse, getResponseAttributes, getResponseCacheDirectives, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, isLoggable, release, setApplication, setQueryValue, setRequest, setResponse, toBoolean, toByte, toDouble, toFloat, toInteger, toLong, toObject, toRepresentation, toRepresentation, toRepresentation, toShort, toStringpublic AccessTokenClientResource(Reference tokenUri)
public Representation handleInbound(Response response)
ClientResource.handleInbound(Response) method in order to return the OAuth error entity.
That is to say in case of OAuth error response, no ResourceException is thrown, whereas the initial
behaviour of ClientResource is to throw such exception.handleInbound in class ClientResourceresponse - public org.restlet.ext.oauth.internal.Token requestToken(OAuthParameters parameters) throws OAuthException, java.io.IOException, org.json.JSONException
parameters - The credentials, in case of they are sent via the entity of the request.OAuthExceptionjava.io.IOExceptionorg.json.JSONExceptionpublic void setAuthenticationMethod(ChallengeScheme scheme)
public void setClientCredentials(java.lang.String clientId,
java.lang.String clientSecret)
protected void setupBodyClientCredentials(OAuthParameters parameters)
requestToken(OAuthParameters) method.parameters - The set of Oauth parameters to complete.Copyright © 2005-2020 Restlet.