@Deprecated public abstract class OAuthServerResource extends ServerResource implements OAuthResourceDefs
| Modifier and Type | Field and Description |
|---|---|
protected org.restlet.ext.oauth.internal.ClientManager |
clients
Deprecated.
|
static java.lang.String |
PARAMETER_DEFAULT_SCOPE
Deprecated.
|
protected org.restlet.ext.oauth.internal.TokenManager |
tokens
Deprecated.
|
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 |
|---|
OAuthServerResource()
Deprecated.
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addCacheDirective(Response response,
CacheDirective cacheDirective)
Deprecated.
Adds a cache directive to the response.
|
protected void |
doInit()
Deprecated.
|
protected org.restlet.ext.oauth.internal.Client |
getClient(Form parameters)
Deprecated.
Get request parameter "client_id".
|
protected java.lang.String[] |
getScope(Form parameters)
Deprecated.
Get request parameter "scope".
|
protected java.lang.String |
getState(Form parameters)
Deprecated.
Get request parameter "state".
|
static Representation |
responseErrorRepresentation(OAuthException ex)
Deprecated.
Returns the representation of the given error.
|
abort, commit, delete, delete, describeVariants, doCatch, doConditionalHandle, doError, doHandle, doHandle, doHandle, doNegotiatedHandle, get, get, getAnnotation, getAnnotation, getAnnotations, getAttribute, getDescription, getInfo, getInfo, getName, getOnSent, getPreferredVariant, getRole, getVariants, getVariants, handle, hasAnnotations, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, options, patch, patch, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAttribute, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDescription, setDimensions, setExisting, setLocationRef, setLocationRef, setName, setNegotiated, setOnSent, setProxyChallengeRequests, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensionsdoError, doRelease, 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 static final java.lang.String PARAMETER_DEFAULT_SCOPE
protected volatile org.restlet.ext.oauth.internal.ClientManager clients
protected volatile org.restlet.ext.oauth.internal.TokenManager tokens
public OAuthServerResource()
public static void addCacheDirective(Response response, CacheDirective cacheDirective)
response - The current response.cacheDirective - The cache directive to add.public static Representation responseErrorRepresentation(OAuthException ex)
ex - Any OAuthException with errorprotected void doInit()
throws ResourceException
doInit in class ResourceResourceExceptionprotected org.restlet.ext.oauth.internal.Client getClient(Form parameters) throws OAuthException
parameters - OAuthExceptionprotected java.lang.String[] getScope(Form parameters) throws OAuthException
parameters - OAuthExceptionprotected java.lang.String getState(Form parameters)
parameters - OAuthExceptionCopyright © 2005-2024 Restlet.