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.ContentTypeOptionsSpec
The content type headers
|
class |
ServerHttpSecurity.HeaderSpec.FrameOptionsSpec
Configures frame options response header
|
class |
ServerHttpSecurity.HeaderSpec.HstsSpec
Configures Strict Transport Security response header
|
class |
ServerHttpSecurity.HeaderSpec.XssProtectionSpec
Configures x-xss-protection response header
|
Modifier and Type | Method and Description |
---|---|
ServerHttpSecurity |
and()
Allows method chaining to continue configuring the
ServerHttpSecurity |
ServerHttpSecurity.HeaderSpec.CacheSpec |
cache()
Configures cache control headers
|
protected void |
configure(ServerHttpSecurity http) |
ServerHttpSecurity.HeaderSpec.ContentTypeOptionsSpec |
contentTypeOptions()
Configures content type response headers
|
ServerHttpSecurity |
disable()
Disables http response headers
|
ServerHttpSecurity.HeaderSpec.FrameOptionsSpec |
frameOptions()
Configures frame options response headers
|
ServerHttpSecurity.HeaderSpec.HstsSpec |
hsts()
Configures the Strict Transport Security response headers
|
ServerHttpSecurity.HeaderSpec.XssProtectionSpec |
xssProtection()
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 configure