Package org.keycloak.models
Enum BrowserSecurityHeaders
- java.lang.Object
-
- java.lang.Enum<BrowserSecurityHeaders>
-
- org.keycloak.models.BrowserSecurityHeaders
-
- All Implemented Interfaces:
Serializable
,Comparable<BrowserSecurityHeaders>
public enum BrowserSecurityHeaders extends Enum<BrowserSecurityHeaders>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTENT_SECURITY_POLICY
CONTENT_SECURITY_POLICY_REPORT_ONLY
REFERRER_POLICY
STRICT_TRANSPORT_SECURITY
X_CONTENT_TYPE_OPTIONS
X_FRAME_OPTIONS
X_ROBOTS_TAG
X_XSS_PROTECTION
-
Field Summary
Fields Modifier and Type Field Description static Map<String,String>
realmDefaultHeaders
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDefaultValue()
String
getHeaderName()
String
getKey()
static BrowserSecurityHeaders
valueOf(String name)
Returns the enum constant of this type with the specified name.static BrowserSecurityHeaders[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
X_FRAME_OPTIONS
public static final BrowserSecurityHeaders X_FRAME_OPTIONS
-
CONTENT_SECURITY_POLICY
public static final BrowserSecurityHeaders CONTENT_SECURITY_POLICY
-
CONTENT_SECURITY_POLICY_REPORT_ONLY
public static final BrowserSecurityHeaders CONTENT_SECURITY_POLICY_REPORT_ONLY
-
X_CONTENT_TYPE_OPTIONS
public static final BrowserSecurityHeaders X_CONTENT_TYPE_OPTIONS
-
X_ROBOTS_TAG
public static final BrowserSecurityHeaders X_ROBOTS_TAG
-
X_XSS_PROTECTION
public static final BrowserSecurityHeaders X_XSS_PROTECTION
-
STRICT_TRANSPORT_SECURITY
public static final BrowserSecurityHeaders STRICT_TRANSPORT_SECURITY
-
REFERRER_POLICY
public static final BrowserSecurityHeaders REFERRER_POLICY
-
-
Field Detail
-
realmDefaultHeaders
@Deprecated public static final Map<String,String> realmDefaultHeaders
Deprecated.
-
-
Method Detail
-
values
public static BrowserSecurityHeaders[] 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 (BrowserSecurityHeaders c : BrowserSecurityHeaders.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BrowserSecurityHeaders 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 nameNullPointerException
- if the argument is null
-
getKey
public String getKey()
-
getHeaderName
public String getHeaderName()
-
getDefaultValue
public String getDefaultValue()
-
-