Package org.apache.hadoop.hbase.http
Class SecurityHeadersFilter
java.lang.Object
org.apache.hadoop.hbase.http.SecurityHeadersFilter
- All Implemented Interfaces:
javax.servlet.Filter
@LimitedPrivate("Configuration")
public class SecurityHeadersFilter
extends Object
implements javax.servlet.Filter
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
void
doFilter
(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) getDefaultParameters
(org.apache.hadoop.conf.Configuration conf, boolean isSecure) void
init
(javax.servlet.FilterConfig filterConfig)
-
Field Details
-
LOG
-
DEFAULT_HSTS
- See Also:
-
DEFAULT_CSP
- See Also:
-
filterConfig
-
-
Constructor Details
-
SecurityHeadersFilter
public SecurityHeadersFilter()
-
-
Method Details
-
init
- Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException - Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
-
destroy
- Specified by:
destroy
in interfacejavax.servlet.Filter
-
getDefaultParameters
public static Map<String,String> getDefaultParameters(org.apache.hadoop.conf.Configuration conf, boolean isSecure)
-