org.springframework.security.web.header.writers.frameoptions
Enum XFrameOptionsHeaderWriter.XFrameOptionsMode
java.lang.Object
java.lang.Enum<XFrameOptionsHeaderWriter.XFrameOptionsMode>
org.springframework.security.web.header.writers.frameoptions.XFrameOptionsHeaderWriter.XFrameOptionsMode
- All Implemented Interfaces:
- Serializable, Comparable<XFrameOptionsHeaderWriter.XFrameOptionsMode>
- Enclosing class:
- XFrameOptionsHeaderWriter
public static enum XFrameOptionsHeaderWriter.XFrameOptionsMode
- extends Enum<XFrameOptionsHeaderWriter.XFrameOptionsMode>
The possible values for the X-Frame-Options header.
- Since:
- 3.2
DENY
public static final XFrameOptionsHeaderWriter.XFrameOptionsMode DENY
SAMEORIGIN
public static final XFrameOptionsHeaderWriter.XFrameOptionsMode SAMEORIGIN
ALLOW_FROM
public static final XFrameOptionsHeaderWriter.XFrameOptionsMode ALLOW_FROM
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(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:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null