Class PermissionsPolicyServerHttpHeadersWriter
java.lang.Object
org.springframework.security.web.server.header.PermissionsPolicyServerHttpHeadersWriter
- All Implemented Interfaces:
- ServerHttpHeadersWriter
public final class PermissionsPolicyServerHttpHeadersWriter
extends Object
implements ServerHttpHeadersWriter
Writes the 
Permissions-Policy response header with configured policy
 directives.- Since:
- 5.5
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidSet the policy to be used in the response header.reactor.core.publisher.Mono<Void>writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange) Write the headers to the response.
- 
Field Details- 
PERMISSIONS_POLICY- See Also:
 
 
- 
- 
Constructor Details- 
PermissionsPolicyServerHttpHeadersWriterpublic PermissionsPolicyServerHttpHeadersWriter()
 
- 
- 
Method Details- 
writeHttpHeaderspublic reactor.core.publisher.Mono<Void> writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange) Description copied from interface:ServerHttpHeadersWriterWrite the headers to the response.- Specified by:
- writeHttpHeadersin interface- ServerHttpHeadersWriter
- Returns:
- A Mono which is returned to the Supplierof theReactiveHttpOutputMessage.beforeCommit(Supplier).
 
- 
setPolicySet the policy to be used in the response header.- Parameters:
- policy- the policy
- Throws:
- IllegalArgumentException- if policy is- null
 
 
-