Class ServerHttpSecurity.HeaderSpec.ReferrerPolicySpec
- java.lang.Object
-
- org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.ReferrerPolicySpec
-
- Enclosing class:
- ServerHttpSecurity.HeaderSpec
public class ServerHttpSecurity.HeaderSpec.ReferrerPolicySpec extends java.lang.Object
ConfiguresReferrer-Policy
response header.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerHttpSecurity.HeaderSpec
and()
Allows method chaining to continue configuring theServerHttpSecurity
.ServerHttpSecurity.HeaderSpec.ReferrerPolicySpec
policy(ReferrerPolicyServerHttpHeadersWriter.ReferrerPolicy referrerPolicy)
Sets the policy to be used in the response header.
-
-
-
Method Detail
-
policy
public ServerHttpSecurity.HeaderSpec.ReferrerPolicySpec policy(ReferrerPolicyServerHttpHeadersWriter.ReferrerPolicy referrerPolicy)
Sets the policy to be used in the response header.- Parameters:
referrerPolicy
- a referrer policy- Returns:
- the
ServerHttpSecurity.HeaderSpec.ReferrerPolicySpec
to continue configuring
-
and
public ServerHttpSecurity.HeaderSpec and()
Allows method chaining to continue configuring theServerHttpSecurity
.- Returns:
- the
ServerHttpSecurity.HeaderSpec
to continue configuring
-
-