Package org.forgerock.openidconnect
Class CheckSession
java.lang.Object
org.forgerock.openidconnect.CheckSession
Interface is to define what needs to be implemented to do the OpenID Connect check session endpoint.
- Since:
- 12.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClientSessionURI(OAuth2Request request) Get the URL the postMessage must be coming from (registered in client) to process the message.Get the cookie name containing the session information.booleangetValidSession(OAuth2Request request) Check if the JWT contains a valid session id.
-
Constructor Details
-
CheckSession
public CheckSession()Constructs a new CheckSession.
-
-
Method Details
-
getCookieName
Get the cookie name containing the session information.- Returns:
- The cookie name.
-
getClientSessionURI
public String getClientSessionURI(OAuth2Request request) throws org.forgerock.oauth2.core.exceptions.UnauthorizedClientException, org.forgerock.oauth2.core.exceptions.InvalidClientException, org.forgerock.oauth2.core.exceptions.NotFoundException, org.forgerock.oauth2.core.exceptions.ServerException Get the URL the postMessage must be coming from (registered in client) to process the message.- Parameters:
request- The HttpServletRequest.- Returns:
- The url as a string or empty String.
- Throws:
org.forgerock.oauth2.core.exceptions.UnauthorizedClientExceptionorg.forgerock.oauth2.core.exceptions.InvalidClientExceptionorg.forgerock.oauth2.core.exceptions.NotFoundExceptionorg.forgerock.oauth2.core.exceptions.ServerException
-
getValidSession
Check if the JWT contains a valid session id.- Parameters:
request- The HttpServletRequset.- Returns:
trueif valid.
-