public class AccessTokenClientResource extends ClientResource implements OAuthResourceDefs
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) |
Modifier and Type | Method and Description |
---|---|
void |
doError(Status errorStatus) |
Representation |
handleInbound(Response response) |
org.restlet.ext.oauth.internal.Token |
requestToken(OAuthParameters parameters) |
void |
setAuthenticationMethod(ChallengeScheme scheme) |
void |
setClientCredentials(String clientId,
String clientSecret) |
protected void |
setupBodyClientCredentials(OAuthParameters parameters) |
accept, accept, addQueryParameter, addQueryParameter, addQueryParameters, addSegment, create, create, create, createNext, createRequest, createResponse, delete, delete, delete, 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, wrap
doCatch, 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, toString
public AccessTokenClientResource(Reference tokenURI)
public void doError(Status errorStatus)
doError
in class ClientResource
public Representation handleInbound(Response response)
handleInbound
in class ClientResource
public org.restlet.ext.oauth.internal.Token requestToken(OAuthParameters parameters) throws OAuthException, IOException, JSONException
OAuthException
IOException
JSONException
public void setAuthenticationMethod(ChallengeScheme scheme)
protected void setupBodyClientCredentials(OAuthParameters parameters)
Copyright © 2005-2015 Restlet.