| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private boolean | |
| private String | |
| private HttpHeaderSecurityFilter. | |
| private URI | |
| private static final String | |
| private static final String | |
| private boolean | |
| private static final String | |
| private boolean | |
| private String | |
| private boolean | |
| private int | |
| private boolean | |
| private final Log | |
| private static final String | XSS_PROTECTION_HEADER_NAME
Deprecated
|
| private static final String | XSS_PROTECTION_HEADER_VALUE
Deprecated
|
| private boolean | xssProtectionEnabled
Deprecated
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | doFilter(ServletRequest
The request to process request, ServletResponse The response associated with the request response, FilterChain Provides access to the next filter in the chain for this filter to pass the request and response
to for further processing chain)Implements jakarta. The |
| public String | |
| public String | |
| public int | |
| protected Log | |
| public void | init(FilterConfig
The configuration information associated with the filter instance being initialised filterConfig)Overrides org. Overrides default jakarta. Iterates over the configuration parameters and either logs a warning, or throws an exception for any parameter that does not have a matching setter in this filter. |
| public boolean | |
| public boolean | |
| protected boolean | isConfigProblemFatal()
Overrides org. Determines if an exception when calling a setter or an unknown configuration attribute triggers the failure of the this filter which in turn will prevent the web application from starting. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| ANTI_CLICK_JACKING_HEADER_NAME | back to summary |
|---|---|
| private static final String ANTI_CLICK_JACKING_HEADER_NAME | |
| antiClickJackingEnabled | back to summary |
|---|---|
| private boolean antiClickJackingEnabled | |
| antiClickJackingHeaderValue | back to summary |
|---|---|
| private String antiClickJackingHeaderValue | |
| antiClickJackingOption | back to summary |
|---|---|
| private HttpHeaderSecurityFilter. | |
| antiClickJackingUri | back to summary |
|---|---|
| private URI antiClickJackingUri | |
| BLOCK_CONTENT_TYPE_SNIFFING_HEADER_NAME | back to summary |
|---|---|
| private static final String BLOCK_CONTENT_TYPE_SNIFFING_HEADER_NAME | |
| BLOCK_CONTENT_TYPE_SNIFFING_HEADER_VALUE | back to summary |
|---|---|
| private static final String BLOCK_CONTENT_TYPE_SNIFFING_HEADER_VALUE | |
| blockContentTypeSniffingEnabled | back to summary |
|---|---|
| private boolean blockContentTypeSniffingEnabled | |
| HSTS_HEADER_NAME | back to summary |
|---|---|
| private static final String HSTS_HEADER_NAME | |
| hstsEnabled | back to summary |
|---|---|
| private boolean hstsEnabled | |
| hstsHeaderValue | back to summary |
|---|---|
| private String hstsHeaderValue | |
| hstsIncludeSubDomains | back to summary |
|---|---|
| private boolean hstsIncludeSubDomains | |
| hstsMaxAgeSeconds | back to summary |
|---|---|
| private int hstsMaxAgeSeconds | |
| hstsPreload | back to summary |
|---|---|
| private boolean hstsPreload | |
| log | back to summary |
|---|---|
| private final Log log | |
| XSS_PROTECTION_HEADER_NAME | back to summary |
|---|---|
| private static final String XSS_PROTECTION_HEADER_NAME
Deprecated
| |
| XSS_PROTECTION_HEADER_VALUE | back to summary |
|---|---|
| private static final String XSS_PROTECTION_HEADER_VALUE
Deprecated
| |
| xssProtectionEnabled | back to summary |
|---|---|
| private boolean xssProtectionEnabled
Deprecated
| |
| HttpHeaderSecurityFilter | back to summary |
|---|---|
| public HttpHeaderSecurityFilter() | |
| doFilter | back to summary |
|---|---|
| public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException Implements jakarta. Doc from jakarta. The
A typical implementation of this method would follow the following pattern:-
| |
| getAntiClickJackingOption | back to summary |
|---|---|
| public String getAntiClickJackingOption() | |
| getAntiClickJackingUri | back to summary |
|---|---|
| public String getAntiClickJackingUri() | |
| getHstsMaxAgeSeconds | back to summary |
|---|---|
| public int getHstsMaxAgeSeconds() | |
| getLogger | back to summary |
|---|---|
| protected Log getLogger() Implements abstract org.
| |
| init | back to summary |
|---|---|
| public void init(FilterConfig filterConfig) throws ServletException Overrides org. Overrides default jakarta. Doc from org. Iterates over the configuration parameters and either logs a warning, or throws an exception for any parameter that does not have a matching setter in this filter.
| |
| isAntiClickJackingEnabled | back to summary |
|---|---|
| public boolean isAntiClickJackingEnabled() | |
| isBlockContentTypeSniffingEnabled | back to summary |
|---|---|
| public boolean isBlockContentTypeSniffingEnabled() | |
| isConfigProblemFatal | back to summary |
|---|---|
| protected boolean isConfigProblemFatal() Overrides org. Doc from org. Determines if an exception when calling a setter or an unknown configuration attribute triggers the failure of the this filter which in turn will prevent the web application from starting.
| |
| isHstsEnabled | back to summary |
|---|---|
| public boolean isHstsEnabled() | |
| isHstsIncludeSubDomains | back to summary |
|---|---|
| public boolean isHstsIncludeSubDomains() | |
| isHstsPreload | back to summary |
|---|---|
| public boolean isHstsPreload() | |
| isXssProtectionEnabled | back to summary |
|---|---|
| public boolean isXssProtectionEnabled()
Deprecated
| |
| setAntiClickJackingEnabled | back to summary |
|---|---|
| public void setAntiClickJackingEnabled(boolean antiClickJackingEnabled) | |
| setAntiClickJackingOption | back to summary |
|---|---|
| public void setAntiClickJackingOption(String antiClickJackingOption) | |
| setAntiClickJackingUri | back to summary |
|---|---|
| public void setAntiClickJackingUri(String antiClickJackingUri) | |
| setBlockContentTypeSniffingEnabled | back to summary |
|---|---|
| public void setBlockContentTypeSniffingEnabled(boolean blockContentTypeSniffingEnabled) | |
| setHstsEnabled | back to summary |
|---|---|
| public void setHstsEnabled(boolean hstsEnabled) | |
| setHstsIncludeSubDomains | back to summary |
|---|---|
| public void setHstsIncludeSubDomains(boolean hstsIncludeSubDomains) | |
| setHstsMaxAgeSeconds | back to summary |
|---|---|
| public void setHstsMaxAgeSeconds(int hstsMaxAgeSeconds) | |
| setHstsPreload | back to summary |
|---|---|
| public void setHstsPreload(boolean hstsPreload) | |
| setXssProtectionEnabled | back to summary |
|---|---|
| public void setXssProtectionEnabled(boolean xssProtectionEnabled)
Deprecated
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final HttpHeaderSecurityFilter. | |
| public static final HttpHeaderSecurityFilter. | |
| private final String | |
| public static final HttpHeaderSecurityFilter. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public static HttpHeaderSecurityFilter. | |
| public static HttpHeaderSecurityFilter. |
| ALLOW_FROM | back to summary |
|---|---|
| public static final HttpHeaderSecurityFilter. | |
| DENY | back to summary |
|---|---|
| public static final HttpHeaderSecurityFilter. | |
| headerValue | back to summary |
|---|---|
| private final String headerValue | |
| SAME_ORIGIN | back to summary |
|---|---|
| public static final HttpHeaderSecurityFilter. | |
| XFrameOption | back to summary |
|---|---|
| private XFrameOption(String headerValue) | |
| getHeaderValue | back to summary |
|---|---|
| public String getHeaderValue() | |
| valueOf | back to summary |
|---|---|
| public static HttpHeaderSecurityFilter. | |
| values | back to summary |
|---|---|
| public static HttpHeaderSecurityFilter. | |