Class RestAuthenticationHandler
java.lang.Object
com.collabnet.ce.soap60.integratedapps.util.RestAuthenticationHandler
- All Implemented Interfaces:
javax.servlet.Filter
Filter that takes a request, checks if there is a "authKey"
header and verifies that its valid
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RestAuthenticationHandler
public RestAuthenticationHandler()
-
-
Method Details
-
init
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException - Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroy
in interfacejavax.servlet.Filter
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws javax.servlet.ServletException, IOException Servlet Filter method- Specified by:
doFilter
in interfacejavax.servlet.Filter
- Parameters:
request
- Incoming http requestresponse
- Http Responsechain
- Filter Chain for the request- Throws:
javax.servlet.ServletException
- thrown when there is a mismatch in the authentication key hashIOException
- thrown if something goes wrong.
-