public final class ServerHttpSecurity.HeaderSpec.ReferrerPolicySpec
extends java.lang.Object
Referrer-Policy
response header.ServerHttpSecurity.HeaderSpec.referrerPolicy()
,
#referrerPolicy(ReferrerPolicy)
Modifier and Type | Method and Description |
---|---|
ServerHttpSecurity.HeaderSpec |
and()
Allows method chaining to continue configuring the
ServerHttpSecurity . |
ServerHttpSecurity.HeaderSpec.ReferrerPolicySpec |
policy(ReferrerPolicyServerHttpHeadersWriter.ReferrerPolicy referrerPolicy)
Sets the policy to be used in the response header.
|
public ServerHttpSecurity.HeaderSpec.ReferrerPolicySpec policy(ReferrerPolicyServerHttpHeadersWriter.ReferrerPolicy referrerPolicy)
referrerPolicy
- a referrer policyServerHttpSecurity.HeaderSpec.ReferrerPolicySpec
to continue configuringpublic ServerHttpSecurity.HeaderSpec and()
ServerHttpSecurity
.ServerHttpSecurity.HeaderSpec
to continue configuring