Class SessionManagerImpl
java.lang.Object
com.tremolosecurity.proxy.SessionManagerImpl
- All Implemented Interfaces:
SessionManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddUserSession(String userDN, TremoloHttpSession session) voidclearSession(UrlHolder holder, jakarta.servlet.http.HttpSession sharedSession, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) static TremoloHttpSessionfindSessionFromCookie(jakarta.servlet.http.Cookie sessionCookie, SecretKey encKey, SessionManagerImpl sessionMgr) jakarta.servlet.http.HttpSessiongetSession(UrlHolder holder, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext ctx) jakarta.servlet.http.HttpSessiongetSession(String sessionCookieName, UrlHolder holder, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.ServletContext ctx) voidinvalidateSession(TremoloHttpSession tsession) voidvoidmoveSession(String currentDn, String newDn) voidremoveSessionFromCache(TremoloHttpSession tsession) voidremoveUserSession(String dn, TremoloHttpSession session) voidvoidshutdownSession(TremoloHttpSession tsession) voidvoidwriteSession(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:
invalidateSessionin interfaceSessionManager
-
shutdownSession
- Specified by:
shutdownSessionin interfaceSessionManager
-
addUserSession
- Specified by:
addUserSessionin interfaceSessionManager
-
removeUserSession
- Specified by:
removeUserSessionin interfaceSessionManager
-
moveSession
- Specified by:
moveSessionin interfaceSessionManager
-
logoutAll
- Specified by:
logoutAllin interfaceSessionManager
-
removeSessionFromCache
- Specified by:
removeSessionFromCachein 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:
getSessionin 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:
getSessionin 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:
writeSessionin 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:
clearSessionin interfaceSessionManager
-
resetSessionChecker
- Specified by:
resetSessionCheckerin interfaceSessionManager
-
getSessions
- Specified by:
getSessionsin interfaceSessionManager
-
stopSessionChecker
public void stopSessionChecker()- Specified by:
stopSessionCheckerin interfaceSessionManager
-