public class ServerHttpSecurity.HeaderSpec
extends java.lang.Object
ServerHttpSecurity.headers()
Modifier and Type | Class and Description |
---|---|
class |
ServerHttpSecurity.HeaderSpec.CacheSpec
Configures cache control headers
|
class |
ServerHttpSecurity.HeaderSpec.ContentSecurityPolicySpec
Configures
Content-Security-Policy response header. |
class |
ServerHttpSecurity.HeaderSpec.ContentTypeOptionsSpec
The content type headers
|
class |
ServerHttpSecurity.HeaderSpec.FeaturePolicySpec
Configures
Feature-Policy response header. |
class |
ServerHttpSecurity.HeaderSpec.FrameOptionsSpec
Configures frame options response header
|
class |
ServerHttpSecurity.HeaderSpec.HstsSpec
Configures Strict Transport Security response header
|
class |
ServerHttpSecurity.HeaderSpec.ReferrerPolicySpec
Configures
Referrer-Policy response header. |
class |
ServerHttpSecurity.HeaderSpec.XssProtectionSpec
Configures x-xss-protection response header
|
public ServerHttpSecurity and()
ServerHttpSecurity
ServerHttpSecurity
to continue configuringpublic ServerHttpSecurity disable()
ServerHttpSecurity
to continue configuringpublic ServerHttpSecurity.HeaderSpec.CacheSpec cache()
ServerHttpSecurity.HeaderSpec.CacheSpec
to configurepublic ServerHttpSecurity.HeaderSpec.ContentTypeOptionsSpec contentTypeOptions()
ServerHttpSecurity.HeaderSpec.ContentTypeOptionsSpec
to configurepublic ServerHttpSecurity.HeaderSpec.FrameOptionsSpec frameOptions()
ServerHttpSecurity.HeaderSpec.FrameOptionsSpec
to configurepublic ServerHttpSecurity.HeaderSpec.HstsSpec hsts()
ServerHttpSecurity.HeaderSpec.HstsSpec
to configureprotected void configure(ServerHttpSecurity http)
public ServerHttpSecurity.HeaderSpec.XssProtectionSpec xssProtection()
ServerHttpSecurity.HeaderSpec.XssProtectionSpec
to configurepublic ServerHttpSecurity.HeaderSpec.ContentSecurityPolicySpec contentSecurityPolicy(java.lang.String policyDirectives)
Content-Security-Policy
response header.policyDirectives
- the policy directive(s)ServerHttpSecurity.HeaderSpec.ContentSecurityPolicySpec
to configurepublic ServerHttpSecurity.HeaderSpec.FeaturePolicySpec featurePolicy(java.lang.String policyDirectives)
Feature-Policy
response header.policyDirectives
- the policy directive(s)ServerHttpSecurity.HeaderSpec.FeaturePolicySpec
to configurepublic ServerHttpSecurity.HeaderSpec.ReferrerPolicySpec referrerPolicy(ReferrerPolicyServerHttpHeadersWriter.ReferrerPolicy referrerPolicy)
Referrer-Policy
response header.referrerPolicy
- the policy to useServerHttpSecurity.HeaderSpec.ReferrerPolicySpec
to configurepublic ServerHttpSecurity.HeaderSpec.ReferrerPolicySpec referrerPolicy()
Referrer-Policy
response header.ServerHttpSecurity.HeaderSpec.ReferrerPolicySpec
to configure