Class ClearSiteDataServerHttpHeadersWriter
- java.lang.Object
-
- org.springframework.security.web.server.header.ClearSiteDataServerHttpHeadersWriter
-
- All Implemented Interfaces:
ServerHttpHeadersWriter
public final class ClearSiteDataServerHttpHeadersWriter extends java.lang.Object implements ServerHttpHeadersWriter
Writes the
Clear-Site-Dataresponse header when the request is secure.For further details pleaes consult W3C Documentation.
- Since:
- 5.2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClearSiteDataServerHttpHeadersWriter.DirectiveRepresents the directive values expected by theClearSiteDataServerHttpHeadersWriter
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCLEAR_SITE_DATA_HEADER
-
Constructor Summary
Constructors Constructor Description ClearSiteDataServerHttpHeadersWriter(ClearSiteDataServerHttpHeadersWriter.Directive... directives)Constructs a new instance using the given directives.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<java.lang.Void>writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange)Write the headers to the response.
-
-
-
Field Detail
-
CLEAR_SITE_DATA_HEADER
public static final java.lang.String CLEAR_SITE_DATA_HEADER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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:
java.lang.IllegalArgumentException- if the argument is null or empty
-
-
Method Detail
-
writeHttpHeaders
public reactor.core.publisher.Mono<java.lang.Void> writeHttpHeaders(org.springframework.web.server.ServerWebExchange exchange)
Description copied from interface:ServerHttpHeadersWriterWrite the headers to the response.- Specified by:
writeHttpHeadersin interfaceServerHttpHeadersWriter- Returns:
- A Mono which is returned to the
Supplierof theReactiveHttpOutputMessage.beforeCommit(Supplier).
-
-