Package org.forgerock.openidconnect
Class CheckSession
- java.lang.Object
-
- org.forgerock.openidconnect.CheckSession
-
public class CheckSession extends Object
Interface is to define what needs to be implemented to do the OpenID Connect check session endpoint.- Since:
- 12.0.0
-
-
Constructor Summary
Constructors Constructor Description CheckSession()Constructs a new CheckSession.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClientSessionURI(jakarta.servlet.http.HttpServletRequest request)Get the URL the postMessage must be coming from (registered in client) to process the message.StringgetCookieName()Get the cookie name containing the session information.booleangetValidSession(jakarta.servlet.http.HttpServletRequest request)Check if the JWT contains a valid session id.
-
-
-
Method Detail
-
getCookieName
public String getCookieName()
Get the cookie name containing the session information.- Returns:
- The cookie name.
-
getClientSessionURI
public String getClientSessionURI(jakarta.servlet.http.HttpServletRequest request) throws UnauthorizedClientException, InvalidClientException, NotFoundException
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:
UnauthorizedClientExceptionInvalidClientExceptionNotFoundException
-
getValidSession
public boolean getValidSession(jakarta.servlet.http.HttpServletRequest request)
Check if the JWT contains a valid session id.- Parameters:
request- The HttpServletRequset.- Returns:
trueif valid.
-
-