Enum CrossOriginOpenerPolicyServerHttpHeadersWriter.CrossOriginOpenerPolicy
- java.lang.Object
-
- java.lang.Enum<CrossOriginOpenerPolicyServerHttpHeadersWriter.CrossOriginOpenerPolicy>
-
- org.springframework.security.web.server.header.CrossOriginOpenerPolicyServerHttpHeadersWriter.CrossOriginOpenerPolicy
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CrossOriginOpenerPolicyServerHttpHeadersWriter.CrossOriginOpenerPolicy>
- Enclosing class:
- CrossOriginOpenerPolicyServerHttpHeadersWriter
public static enum CrossOriginOpenerPolicyServerHttpHeadersWriter.CrossOriginOpenerPolicy extends java.lang.Enum<CrossOriginOpenerPolicyServerHttpHeadersWriter.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 java.lang.String
getPolicy()
static CrossOriginOpenerPolicyServerHttpHeadersWriter.CrossOriginOpenerPolicy
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CrossOriginOpenerPolicyServerHttpHeadersWriter.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 CrossOriginOpenerPolicyServerHttpHeadersWriter.CrossOriginOpenerPolicy UNSAFE_NONE
-
SAME_ORIGIN_ALLOW_POPUPS
public static final CrossOriginOpenerPolicyServerHttpHeadersWriter.CrossOriginOpenerPolicy SAME_ORIGIN_ALLOW_POPUPS
-
SAME_ORIGIN
public static final CrossOriginOpenerPolicyServerHttpHeadersWriter.CrossOriginOpenerPolicy SAME_ORIGIN
-
-
Method Detail
-
values
public static CrossOriginOpenerPolicyServerHttpHeadersWriter.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 (CrossOriginOpenerPolicyServerHttpHeadersWriter.CrossOriginOpenerPolicy c : CrossOriginOpenerPolicyServerHttpHeadersWriter.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 CrossOriginOpenerPolicyServerHttpHeadersWriter.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()
-
-