Class CrossOriginOpenerPolicyServerHttpHeadersWriter
java.lang.Object
org.springframework.security.web.server.header.CrossOriginOpenerPolicyServerHttpHeadersWriter
- All Implemented Interfaces:
ServerHttpHeadersWriter
public final class CrossOriginOpenerPolicyServerHttpHeadersWriter
extends Object
implements ServerHttpHeadersWriter
Inserts Cross-Origin-Opener-Policy header.
- Since:
- 5.7
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Sets theCrossOriginOpenerPolicyServerHttpHeadersWriter.CrossOriginOpenerPolicy
value to be used in theCross-Origin-Opener-Policy
headerreactor.core.publisher.Mono<Void>
writeHttpHeaders
(org.springframework.web.server.ServerWebExchange exchange) Write the headers to the response.
-
Field Details
-
OPENER_POLICY
- See Also:
-
-
Constructor Details
-
CrossOriginOpenerPolicyServerHttpHeadersWriter
public CrossOriginOpenerPolicyServerHttpHeadersWriter()
-
-
Method Details
-
setPolicy
public void setPolicy(CrossOriginOpenerPolicyServerHttpHeadersWriter.CrossOriginOpenerPolicy openerPolicy) Sets theCrossOriginOpenerPolicyServerHttpHeadersWriter.CrossOriginOpenerPolicy
value to be used in theCross-Origin-Opener-Policy
header- Parameters:
openerPolicy
- theCrossOriginOpenerPolicyServerHttpHeadersWriter.CrossOriginOpenerPolicy
to use
-
writeHttpHeaders
public reactor.core.publisher.Mono<Void> writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange) Description copied from interface:ServerHttpHeadersWriter
Write the headers to the response.- Specified by:
writeHttpHeaders
in interfaceServerHttpHeadersWriter
- Returns:
- A Mono which is returned to the
Supplier
of theReactiveHttpOutputMessage.beforeCommit(Supplier)
.
-