Package org.jumpmind.symmetric.web
Class AuthenticationInterceptor
java.lang.Object
org.jumpmind.symmetric.web.AuthenticationInterceptor
- All Implemented Interfaces:
IInterceptor
Protect handlers by checking that the request is allowed.
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationInterceptor
(INodeService nodeService, ISecurityService securityService, boolean useSessionAuth, int sessionExpireSeconds, int maxSessions) -
Method Summary
Modifier and TypeMethodDescriptionvoid
after
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) boolean
before
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected AuthenticationSession
getSession
(jakarta.servlet.http.HttpServletRequest req, boolean create) protected void
-
Constructor Details
-
AuthenticationInterceptor
public AuthenticationInterceptor(INodeService nodeService, ISecurityService securityService, boolean useSessionAuth, int sessionExpireSeconds, int maxSessions)
-
-
Method Details
-
before
public boolean before(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws IOException, jakarta.servlet.ServletException - Specified by:
before
in interfaceIInterceptor
- Throws:
IOException
jakarta.servlet.ServletException
-
getSession
protected AuthenticationSession getSession(jakarta.servlet.http.HttpServletRequest req, boolean create) -
removeOldSessions
protected void removeOldSessions() -
after
public void after(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws IOException, jakarta.servlet.ServletException - Specified by:
after
in interfaceIInterceptor
- Throws:
IOException
jakarta.servlet.ServletException
-