Class HeadersConfigurer.PermissionsPolicyConfig
java.lang.Object
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.PermissionsPolicyConfig
- Enclosing class:
- HeadersConfigurer<H extends HttpSecurityBuilder<H>>
-
Method Summary
Modifier and TypeMethodDescriptionand()
Allows completing configuration of Permissions Policy and continuing configuration of headers.Sets the policy to be used in the response header.
-
Method Details
-
policy
Sets the policy to be used in the response header.- Parameters:
policy
- a permissions policy- Returns:
- the
HeadersConfigurer<H extends HttpSecurityBuilder<H>>.PermissionsPolicyConfig
for additional configuration - Throws:
IllegalArgumentException
- if policy is null
-
and
Allows completing configuration of Permissions Policy and continuing configuration of headers.- Returns:
- the
HeadersConfigurer
for additional configuration
-