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()
Deprecated, for removal: This API element is subject to removal in a future version.For removal in 7.0.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
Deprecated, for removal: This API element is subject to removal in a future version.For removal in 7.0. UseHeadersConfigurer.permissionsPolicy(Customizer)
insteadAllows completing configuration of Permissions Policy and continuing configuration of headers.- Returns:
- the
HeadersConfigurer
for additional configuration
-