@Deprecated public class AuthorizationBaseServerResource extends OAuthServerResource
clients, PARAMETER_DEFAULT_SCOPE, tokens
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 |
---|
AuthorizationBaseServerResource()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doCatch(java.lang.Throwable t)
Deprecated.
|
protected org.restlet.ext.oauth.internal.AuthSession |
getAuthSession()
Deprecated.
Returns the current authorization session.
|
protected Representation |
getErrorPage(java.lang.String errPage,
OAuthException ex)
Deprecated.
Helper method to format error responses according to OAuth2 spec.
|
protected void |
resetAuthSession()
Deprecated.
Reset the current authorization session.
|
protected void |
sendError(java.lang.String redirectionUri,
OAuthException ex,
java.lang.String state,
boolean fragment)
Deprecated.
Helper method to format error responses according to OAuth2 spec.
|
protected org.restlet.ext.oauth.internal.AuthSession |
setupAuthSession(org.restlet.ext.oauth.internal.RedirectionURI redirectionUri)
Deprecated.
Sets up a new authorization session.
|
protected void |
ungetAuthSession()
Deprecated.
Use
resetAuthSession() instead. |
addCacheDirective, doInit, getClient, getScope, getState, responseErrorRepresentation
abort, commit, delete, delete, describeVariants, doConditionalHandle, doError, doHandle, doHandle, doNegotiatedHandle, get, get, 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, updateDimensions
doError, 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, toString
public AuthorizationBaseServerResource()
protected void doCatch(java.lang.Throwable t)
doCatch
in class ServerResource
protected org.restlet.ext.oauth.internal.AuthSession getAuthSession() throws OAuthException
AuthSession
instance.OAuthException
- In case the session has timed out.protected Representation getErrorPage(java.lang.String errPage, OAuthException ex)
errPage
- errorPage template nameex
- Any OAuthException with errorprotected void sendError(java.lang.String redirectionUri, OAuthException ex, java.lang.String state, boolean fragment)
redirectionUri
- redirection URI to send error.ex
- Any OAuthException with error.state
- state parameter as presented in the initial authorize request.fragment
- true if use URL Fragment.protected org.restlet.ext.oauth.internal.AuthSession setupAuthSession(org.restlet.ext.oauth.internal.RedirectionURI redirectionUri)
redirectionUri
- The redirection URI.protected void ungetAuthSession()
resetAuthSession()
instead.protected void resetAuthSession()
Copyright © 2005-2020 Restlet.