Package io.hawt.web.auth
Class AuthenticationFilter
java.lang.Object
io.hawt.web.auth.AuthenticationFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
Filter 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.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AuthenticationConfigurationprotected intSession timeout -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voiddoFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) voidinit(jakarta.servlet.FilterConfig filterConfig) protected AuthenticationFilter.ProxyRequestTypeisProxyMode(jakarta.servlet.http.HttpServletRequest httpRequest)
-
Field Details
-
authConfiguration
-
timeout
protected int timeoutSession timeout
-
-
Constructor Details
-
AuthenticationFilter
public AuthenticationFilter()
-
-
Method Details
-
init
public void init(jakarta.servlet.FilterConfig filterConfig) throws jakarta.servlet.ServletException - Specified by:
initin interfacejakarta.servlet.Filter- Throws:
jakarta.servlet.ServletException
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Specified by:
doFilterin interfacejakarta.servlet.Filter- Throws:
IOExceptionjakarta.servlet.ServletException
-
isProxyMode
protected AuthenticationFilter.ProxyRequestType isProxyMode(jakarta.servlet.http.HttpServletRequest httpRequest) -
destroy
public void destroy()- Specified by:
destroyin interfacejakarta.servlet.Filter
-