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
|
void |
includeSubdomains(boolean includeSubDomains)
Configures if subdomains should be included.
|
void |
maxAge(java.time.Duration maxAge)
Configures the max age.
|
public void maxAge(java.time.Duration maxAge)
maxAge
- the max agepublic void includeSubdomains(boolean includeSubDomains)
includeSubDomains
- if subdomains should be includedpublic ServerHttpSecurity.HeaderSpec and()
ServerHttpSecurity
ServerHttpSecurity.HeaderSpec
to continue configuringpublic ServerHttpSecurity.HeaderSpec disable()
ServerHttpSecurity
to continue configuring