Class SessionManagerImpl
java.lang.Object
com.tremolosecurity.proxy.SessionManagerImpl
- All Implemented Interfaces:
SessionManager
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearSession
(UrlHolder holder, jakarta.servlet.http.HttpSession sharedSession, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) static TremoloHttpSession
findSessionFromCookie
(jakarta.servlet.http.Cookie sessionCookie, SecretKey encKey, SessionManagerImpl sessionMgr) jakarta.servlet.http.HttpSession
getSession
(UrlHolder holder, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext ctx) jakarta.servlet.http.HttpSession
getSession
(String sessionCookieName, UrlHolder holder, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext ctx) void
invalidateSession
(TremoloHttpSession tsession) void
removeSessionFromCache
(TremoloHttpSession tsession) void
void
shutdownSession
(TremoloHttpSession tsession) void
void
writeSession
(UrlHolder holder, TremoloHttpSession session, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
-
Field Details
-
TREMOLO_SESSION_LAST_ACCESSED
- See Also:
-
TREMOLO_EXTERNAL_SESSION
- See Also:
-
-
Constructor Details
-
SessionManagerImpl
-
-
Method Details
-
invalidateSession
- Specified by:
invalidateSession
in interfaceSessionManager
-
shutdownSession
- Specified by:
shutdownSession
in interfaceSessionManager
-
removeSessionFromCache
- Specified by:
removeSessionFromCache
in interfaceSessionManager
-
getSession
public jakarta.servlet.http.HttpSession getSession(UrlHolder holder, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext ctx) throws Exception - Specified by:
getSession
in interfaceSessionManager
- Throws:
Exception
-
findSessionFromCookie
public static TremoloHttpSession findSessionFromCookie(jakarta.servlet.http.Cookie sessionCookie, SecretKey encKey, SessionManagerImpl sessionMgr) throws UnsupportedEncodingException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException -
getSession
public jakarta.servlet.http.HttpSession getSession(String sessionCookieName, UrlHolder holder, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext ctx) throws Exception - Specified by:
getSession
in interfaceSessionManager
- Throws:
Exception
-
writeSession
public void writeSession(UrlHolder holder, TremoloHttpSession session, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException - Specified by:
writeSession
in interfaceSessionManager
- Throws:
IOException
-
clearSession
public void clearSession(UrlHolder holder, jakarta.servlet.http.HttpSession sharedSession, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) - Specified by:
clearSession
in interfaceSessionManager
-
resetSessionChecker
- Specified by:
resetSessionChecker
in interfaceSessionManager
-
getSessions
- Specified by:
getSessions
in interfaceSessionManager
-
stopSessionChecker
public void stopSessionChecker()- Specified by:
stopSessionChecker
in interfaceSessionManager
-