Enum CrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy
- java.lang.Object
-
- java.lang.Enum<CrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy>
-
- org.springframework.security.web.header.writers.CrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy>
- Enclosing class:
- CrossOriginOpenerPolicyHeaderWriter
public static enum CrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy extends java.lang.Enum<CrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SAME_ORIGIN
SAME_ORIGIN_ALLOW_POPUPS
UNSAFE_NONE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy
from(java.lang.String openerPolicy)
java.lang.String
getPolicy()
static CrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSAFE_NONE
public static final CrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy UNSAFE_NONE
-
SAME_ORIGIN_ALLOW_POPUPS
public static final CrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy SAME_ORIGIN_ALLOW_POPUPS
-
SAME_ORIGIN
public static final CrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy SAME_ORIGIN
-
-
Method Detail
-
values
public static CrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy[] 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 (CrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy c : CrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy 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
-
getPolicy
public java.lang.String getPolicy()
-
from
public static CrossOriginOpenerPolicyHeaderWriter.CrossOriginOpenerPolicy from(java.lang.String openerPolicy)
-
-