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 TypeMethodDescriptionvoidafter(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) booleanbefore(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected AuthenticationSessiongetSession(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:
beforein interfaceIInterceptor- Throws:
IOExceptionjakarta.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:
afterin interfaceIInterceptor- Throws:
IOExceptionjakarta.servlet.ServletException
-