Enum XFrameOptionsHeaderWriter.XFrameOptionsMode
- java.lang.Object
-
- java.lang.Enum<XFrameOptionsHeaderWriter.XFrameOptionsMode>
-
- org.springframework.security.web.header.writers.frameoptions.XFrameOptionsHeaderWriter.XFrameOptionsMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<XFrameOptionsHeaderWriter.XFrameOptionsMode>
- Enclosing class:
- XFrameOptionsHeaderWriter
public static enum XFrameOptionsHeaderWriter.XFrameOptionsMode extends java.lang.Enum<XFrameOptionsHeaderWriter.XFrameOptionsMode>
The possible values for the X-Frame-Options header.- Since:
- 3.2
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLOW_FROM
Deprecated.ALLOW-FROM is an obsolete directive that no longer works in modern browsers.DENY
SAMEORIGIN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XFrameOptionsHeaderWriter.XFrameOptionsMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static XFrameOptionsHeaderWriter.XFrameOptionsMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DENY
public static final XFrameOptionsHeaderWriter.XFrameOptionsMode DENY
-
SAMEORIGIN
public static final XFrameOptionsHeaderWriter.XFrameOptionsMode SAMEORIGIN
-
ALLOW_FROM
@Deprecated public static final XFrameOptionsHeaderWriter.XFrameOptionsMode ALLOW_FROM
Deprecated.ALLOW-FROM is an obsolete directive that no longer works in modern browsers. Instead use Content-Security-Policy with the frame-ancestors directive.
-
-
Method Detail
-
values
public static XFrameOptionsHeaderWriter.XFrameOptionsMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (XFrameOptionsHeaderWriter.XFrameOptionsMode c : XFrameOptionsHeaderWriter.XFrameOptionsMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XFrameOptionsHeaderWriter.XFrameOptionsMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-