Class AuthenticationInterceptor

java.lang.Object
org.jumpmind.symmetric.web.AuthenticationInterceptor
All Implemented Interfaces:
IInterceptor

public class AuthenticationInterceptor extends Object implements IInterceptor
Protect handlers by checking that the request is allowed.
  • 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 interface IInterceptor
      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 interface IInterceptor
      Throws:
      IOException
      jakarta.servlet.ServletException