public class ServerHttpSecurity.HeaderSpec.HstsSpec
extends java.lang.Object
ServerHttpSecurity.HeaderSpec.hsts()
Modifier and Type | Method and Description |
---|---|
ServerHttpSecurity.HeaderSpec |
and()
Allows method chaining to continue configuring the
ServerHttpSecurity |
ServerHttpSecurity.HeaderSpec |
disable()
Disables strict transport security response header
|
ServerHttpSecurity.HeaderSpec.HstsSpec |
includeSubdomains(boolean includeSubDomains)
Configures if subdomains should be included.
|
ServerHttpSecurity.HeaderSpec.HstsSpec |
maxAge(java.time.Duration maxAge)
Configures the max age.
|
public ServerHttpSecurity.HeaderSpec.HstsSpec maxAge(java.time.Duration maxAge)
maxAge
- the max ageServerHttpSecurity.HeaderSpec.HstsSpec
to continue configuringpublic ServerHttpSecurity.HeaderSpec.HstsSpec includeSubdomains(boolean includeSubDomains)
includeSubDomains
- if subdomains should be includedServerHttpSecurity.HeaderSpec.HstsSpec
to continue configuringpublic ServerHttpSecurity.HeaderSpec and()
ServerHttpSecurity
ServerHttpSecurity.HeaderSpec
to continue configuringpublic ServerHttpSecurity.HeaderSpec disable()
ServerHttpSecurity.HeaderSpec
to continue configuring