Package com.collabnet.ce.soap60.integratedapps.util

# 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 Summary

  Constructors
  Constructor
  Description
  `RestAuthenticationHandler()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `destroy()`
  `void`
  `doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain)`
  Servlet Filter method
  `void`
  `init(jakarta.servlet.FilterConfig config)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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.