Class ClearSiteDataServerHttpHeadersWriter
java.lang.Object
org.springframework.security.web.server.header.ClearSiteDataServerHttpHeadersWriter
- All Implemented Interfaces:
ServerHttpHeadersWriter
public final class ClearSiteDataServerHttpHeadersWriter
extends Object
implements ServerHttpHeadersWriter
Writes the Clear-Site-Data
response header when the request is secure.
For further details pleaes consult W3C Documentation.
- Since:
- 5.2
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Represents the directive values expected by theClearSiteDataServerHttpHeadersWriter
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructs a new instance using the given directives. -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
writeHttpHeaders
(org.springframework.web.server.ServerWebExchange exchange) Write the headers to the response.
-
Field Details
-
CLEAR_SITE_DATA_HEADER
- See Also:
-
-
Constructor Details
-
ClearSiteDataServerHttpHeadersWriter
public ClearSiteDataServerHttpHeadersWriter(ClearSiteDataServerHttpHeadersWriter.Directive... directives) Constructs a new instance using the given directives.
- Parameters:
directives
- directives that will be written as the header value- Throws:
IllegalArgumentException
- if the argument is null or empty
-
-
Method Details
-
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)
.
-