|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.security.web.header.writers.frameoptions.XFrameOptionsHeaderWriter
public final class XFrameOptionsHeaderWriter
HeaderWriter
implementation for the X-Frame-Options headers. When using the ALLOW-FROM directive the actual
value is determined by a AllowFromStrategy
.
AllowFromStrategy
Nested Class Summary | |
---|---|
static class |
XFrameOptionsHeaderWriter.XFrameOptionsMode
The possible values for the X-Frame-Options header. |
Field Summary | |
---|---|
static String |
XFRAME_OPTIONS_HEADER
|
Constructor Summary | |
---|---|
XFrameOptionsHeaderWriter()
Creates an instance with XFrameOptionsHeaderWriter.XFrameOptionsMode.DENY |
|
XFrameOptionsHeaderWriter(AllowFromStrategy allowFromStrategy)
Creates a new instance with XFrameOptionsHeaderWriter.XFrameOptionsMode.ALLOW_FROM . |
|
XFrameOptionsHeaderWriter(XFrameOptionsHeaderWriter.XFrameOptionsMode frameOptionsMode)
Creates a new instance |
Method Summary | |
---|---|
void |
writeHeaders(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Create a Header instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String XFRAME_OPTIONS_HEADER
Constructor Detail |
---|
public XFrameOptionsHeaderWriter()
XFrameOptionsHeaderWriter.XFrameOptionsMode.DENY
public XFrameOptionsHeaderWriter(XFrameOptionsHeaderWriter.XFrameOptionsMode frameOptionsMode)
frameOptionsMode
- the XFrameOptionsHeaderWriter.XFrameOptionsMode
to use. If using
XFrameOptionsHeaderWriter.XFrameOptionsMode.ALLOW_FROM
, use
#FrameOptionsHeaderWriter(AllowFromStrategy)
instead.public XFrameOptionsHeaderWriter(AllowFromStrategy allowFromStrategy)
XFrameOptionsHeaderWriter.XFrameOptionsMode.ALLOW_FROM
.
allowFromStrategy
- the strategy for determining what the value for ALLOW_FROM is.Method Detail |
---|
public void writeHeaders(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
HeaderWriter
Header
instance.
writeHeaders
in interface HeaderWriter
request
- the requestresponse
- the response
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |