Class ServerHttpSecurity.HeaderSpec.PermissionsPolicySpec
- java.lang.Object
-
- org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.PermissionsPolicySpec
-
- Enclosing class:
- ServerHttpSecurity.HeaderSpec
public final class ServerHttpSecurity.HeaderSpec.PermissionsPolicySpec extends java.lang.Object
ConfiguresPermissions-Policy
response header.- Since:
- 5.5
- See Also:
ServerHttpSecurity.HeaderSpec.permissionsPolicy()
-
-
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.PermissionsPolicySpec
policy(java.lang.String policy)
Sets the policy to be used in the response header.
-
-
-
Method Detail
-
policy
public ServerHttpSecurity.HeaderSpec.PermissionsPolicySpec policy(java.lang.String policy)
Sets the policy to be used in the response header.- Parameters:
policy
- a permissions policy- Returns:
- the
ServerHttpSecurity.HeaderSpec.PermissionsPolicySpec
to continue configuring
-
and
public ServerHttpSecurity.HeaderSpec and()
Allows method chaining to continue configuring theServerHttpSecurity
.- Returns:
- the
ServerHttpSecurity.HeaderSpec
to continue configuring
-
-