public final 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.
|
ServerHttpSecurity.HeaderSpec.HstsSpec |
preload(boolean preload)
Configures if preload should be included.
|
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.HstsSpec preload(boolean preload)
Configures if preload should be included. Default is false
See Website hstspreload.org for additional details.
preload
- 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