Class RestAuthenticationHandler

java.lang.Object
com.collabnet.ce.soap60.integratedapps.util.RestAuthenticationHandler
All Implemented Interfaces:
jakarta.servlet.Filter

public class RestAuthenticationHandler extends Object implements jakarta.servlet.Filter
Filter that takes a request, checks if there is a "authKey" header and verifies that its valid
  • Constructor Details

    • RestAuthenticationHandler

      public RestAuthenticationHandler()
  • Method Details

    • init

      public void init(jakarta.servlet.FilterConfig config) throws jakarta.servlet.ServletException
      Specified by:
      init in interface jakarta.servlet.Filter
      Throws:
      jakarta.servlet.ServletException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface jakarta.servlet.Filter
    • doFilter

      public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws jakarta.servlet.ServletException, IOException
      Servlet Filter method
      Specified by:
      doFilter in interface jakarta.servlet.Filter
      Parameters:
      request - Incoming http request
      response - Http Response
      chain - Filter Chain for the request
      Throws:
      jakarta.servlet.ServletException - thrown when there is a mismatch in the authentication key hash
      IOException - thrown if something goes wrong.