Class CrossOriginOpenerPolicyHeaderWriter
- java.lang.Object
-
- org.springframework.security.web.header.writers.CrossOriginOpenerPolicyHeaderWriter
-
- All Implemented Interfaces:
HeaderWriter
public final class CrossOriginOpenerPolicyHeaderWriter extends java.lang.Object implements HeaderWriter
Inserts the 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
CrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy
-
Constructor Summary
Constructors Constructor Description CrossOriginOpenerPolicyHeaderWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setPolicy(CrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy openerPolicy)
Sets theCrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy
value to be used in theCross-Origin-Opener-Policy
headervoid
writeHeaders(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Create aHeader
instance.
-
-
-
Method Detail
-
setPolicy
public void setPolicy(CrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy openerPolicy)
Sets theCrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy
value to be used in theCross-Origin-Opener-Policy
header- Parameters:
openerPolicy
- theCrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy
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
-
-