Package io.hawt.web.auth
Class AuthenticationFilter
- java.lang.Object
-
- io.hawt.web.auth.AuthenticationFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class AuthenticationFilter extends java.lang.Object implements javax.servlet.FilterFilter for authentication. If the filter is enabled, then the login screen is shown.This filter is used to provide authentication for direct access to Jolokia endpoint.
-
-
Field Summary
Fields Modifier and Type Field Description protected AuthenticationConfigurationauthConfigurationprotected inttimeout
-
Constructor Summary
Constructors Constructor Description AuthenticationFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)voidinit(javax.servlet.FilterConfig filterConfig)
-
-
-
Field Detail
-
timeout
protected int timeout
-
authConfiguration
protected AuthenticationConfiguration authConfiguration
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.servlet.Filter- Throws:
javax.servlet.ServletException
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException- Specified by:
doFilterin interfacejavax.servlet.Filter- Throws:
java.io.IOExceptionjavax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroyin interfacejavax.servlet.Filter
-
-