Class HeadersConfigurer.ReferrerPolicyConfig
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.ReferrerPolicyConfig
-
- Enclosing class:
- HeadersConfigurer<H extends HttpSecurityBuilder<H>>
public final class HeadersConfigurer.ReferrerPolicyConfig extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HeadersConfigurer<H>
and()
HeadersConfigurer.ReferrerPolicyConfig
policy(ReferrerPolicyHeaderWriter.ReferrerPolicy policy)
Sets the policy to be used in the response header.
-
-
-
Method Detail
-
policy
public HeadersConfigurer.ReferrerPolicyConfig policy(ReferrerPolicyHeaderWriter.ReferrerPolicy policy)
Sets the policy to be used in the response header.- Parameters:
policy
- a referrer policy- Returns:
- the
HeadersConfigurer.ReferrerPolicyConfig
for additional configuration - Throws:
java.lang.IllegalArgumentException
- if policy is null
-
and
public HeadersConfigurer<H> and()
-
-