Class OpenIDConnectCheckSessionEndpoint
- java.lang.Object
-
- org.restlet.resource.Resource
-
- org.restlet.resource.ServerResource
-
- org.forgerock.openidconnect.restlet.OpenIDConnectCheckSessionEndpoint
-
public class OpenIDConnectCheckSessionEndpoint extends org.restlet.resource.ServerResourceHandles requests to the OpenId Connect checkSession endpoint to retrieve the status of OpenId Connect user sessions.
-
-
Constructor Summary
Constructors Constructor Description OpenIDConnectCheckSessionEndpoint(OAuth2RequestFactory requestFactory, OAuth2Representation representation, CheckSession checkSession, org.restlet.routing.Router router, ExceptionHandler exceptionHandler, BaseURLProviderFactory baseURLProviderFactory)Constructs a new OpenIDConnectCheckSessionEndpoint.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.restlet.representation.RepresentationcheckSession()Handles GET requests to the OpenId Connect checkSession endpoint to retrieve the status of OpenId Connect user sessions.org.restlet.representation.RepresentationcheckSession(org.restlet.representation.Representation entity)Handles POST requests to the OpenId Connect checkSession endpoint.protected voiddoCatch(Throwable throwable)org.restlet.ContextgetContext()protected Map<String,Object>getDataModel(OAuth2Request oAuth2Request)-
Methods inherited from class org.restlet.resource.ServerResource
abort, commit, delete, delete, describeVariants, 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, updateDimensions
-
Methods inherited from class org.restlet.resource.Resource
doError, doInit, doRelease, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getConnegService, 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
-
-
-
-
Constructor Detail
-
OpenIDConnectCheckSessionEndpoint
@Inject public OpenIDConnectCheckSessionEndpoint(OAuth2RequestFactory requestFactory, OAuth2Representation representation, CheckSession checkSession, @Named("OAuth2Router") org.restlet.routing.Router router, ExceptionHandler exceptionHandler, BaseURLProviderFactory baseURLProviderFactory)
Constructs a new OpenIDConnectCheckSessionEndpoint.- Parameters:
requestFactory- An instance of the OAuth2RequestFactory.representation- An instance of the OAuth2Representation.checkSession- An instance of the CheckSession.router- An instance of the Router.exceptionHandler- An instance of the ExceptionHandler.baseURLProviderFactory- An instance of the BaseURLProviderFactory.
-
-
Method Detail
-
checkSession
@Get public org.restlet.representation.Representation checkSession() throws OAuth2RestletExceptionHandles GET requests to the OpenId Connect checkSession endpoint to retrieve the status of OpenId Connect user sessions.- Returns:
- The body to be sent in the response to the user agent.
- Throws:
OAuth2RestletException- If an error occurs whilst ending the users session.
-
checkSession
@Post public org.restlet.representation.Representation checkSession(org.restlet.representation.Representation entity) throws OAuth2RestletExceptionHandles POST requests to the OpenId Connect checkSession endpoint.- Parameters:
entity- The entity on the request.- Returns:
- The body to be sent in the response to the user agent.
- Throws:
OAuth2RestletException- If a OAuth2 error occurs whilst processing the authorization request.
-
getDataModel
protected Map<String,Object> getDataModel(OAuth2Request oAuth2Request) throws UnauthorizedClientException, InvalidClientException, NotFoundException
-
doCatch
protected void doCatch(Throwable throwable)
- Overrides:
doCatchin classorg.restlet.resource.ServerResource
-
getContext
public org.restlet.Context getContext()
- Overrides:
getContextin classorg.restlet.resource.Resource
-
-