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