Class CrossOriginEmbedderPolicyHeaderWriter
- java.lang.Object
-
- org.springframework.security.web.header.writers.CrossOriginEmbedderPolicyHeaderWriter
-
- All Implemented Interfaces:
HeaderWriter
public final class CrossOriginEmbedderPolicyHeaderWriter extends java.lang.Object implements HeaderWriter
Inserts Cross-Origin-Embedder-Policy header.- Since:
- 5.7
- See Also:
- Cross-Origin-Embedder-Policy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CrossOriginEmbedderPolicyHeaderWriter.CrossOriginEmbedderPolicy
-
Constructor Summary
Constructors Constructor Description CrossOriginEmbedderPolicyHeaderWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setPolicy(CrossOriginEmbedderPolicyHeaderWriter.CrossOriginEmbedderPolicy embedderPolicy)
Sets theCrossOriginEmbedderPolicyHeaderWriter.CrossOriginEmbedderPolicy
value to be used in theCross-Origin-Embedder-Policy
headervoid
writeHeaders(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Create aHeader
instance.
-
-
-
Method Detail
-
setPolicy
public void setPolicy(CrossOriginEmbedderPolicyHeaderWriter.CrossOriginEmbedderPolicy embedderPolicy)
Sets theCrossOriginEmbedderPolicyHeaderWriter.CrossOriginEmbedderPolicy
value to be used in theCross-Origin-Embedder-Policy
header- Parameters:
embedderPolicy
- theCrossOriginEmbedderPolicyHeaderWriter.CrossOriginEmbedderPolicy
to use
-
writeHeaders
public void writeHeaders(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Description copied from interface:HeaderWriter
Create aHeader
instance.- Specified by:
writeHeaders
in interfaceHeaderWriter
- Parameters:
request
- the requestresponse
- the response
-
-