Class CrossOriginOpenerPolicyServerHttpHeadersWriter
- java.lang.Object
-
- org.springframework.security.web.server.header.CrossOriginOpenerPolicyServerHttpHeadersWriter
-
- All Implemented Interfaces:
ServerHttpHeadersWriter
public final class CrossOriginOpenerPolicyServerHttpHeadersWriter extends java.lang.Object implements ServerHttpHeadersWriter
Inserts Cross-Origin-Opener-Policy header.- Since:
- 5.7
- See Also:
- Cross-Origin-Opener-Policy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CrossOriginOpenerPolicyServerHttpHeadersWriter.CrossOriginOpenerPolicy
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
OPENER_POLICY
-
Constructor Summary
Constructors Constructor Description CrossOriginOpenerPolicyServerHttpHeadersWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setPolicy(CrossOriginOpenerPolicyServerHttpHeadersWriter.CrossOriginOpenerPolicy openerPolicy)
Sets theCrossOriginOpenerPolicyServerHttpHeadersWriter.CrossOriginOpenerPolicy
value to be used in theCross-Origin-Opener-Policy
headerreactor.core.publisher.Mono<java.lang.Void>
writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange)
Write the headers to the response.
-
-
-
Field Detail
-
OPENER_POLICY
public static final java.lang.String OPENER_POLICY
- See Also:
- Constant Field Values
-
-
Method Detail
-
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<java.lang.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)
.
-
-