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 SummaryEnum Constants Enum Constant Description CONTENT_SECURITY_POLICYCONTENT_SECURITY_POLICY_REPORT_ONLYREFERRER_POLICYSTRICT_TRANSPORT_SECURITYX_CONTENT_TYPE_OPTIONSX_FRAME_OPTIONSX_ROBOTS_TAGX_XSS_PROTECTION
 - 
Field SummaryFields Modifier and Type Field Description static Map<String,String>realmDefaultHeadersDeprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultValue()StringgetHeaderName()StringgetKey()static BrowserSecurityHeadersvalueOf(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_OPTIONSpublic static final BrowserSecurityHeaders X_FRAME_OPTIONS 
 - 
CONTENT_SECURITY_POLICYpublic static final BrowserSecurityHeaders CONTENT_SECURITY_POLICY 
 - 
CONTENT_SECURITY_POLICY_REPORT_ONLYpublic static final BrowserSecurityHeaders CONTENT_SECURITY_POLICY_REPORT_ONLY 
 - 
X_CONTENT_TYPE_OPTIONSpublic static final BrowserSecurityHeaders X_CONTENT_TYPE_OPTIONS 
 - 
X_ROBOTS_TAGpublic static final BrowserSecurityHeaders X_ROBOTS_TAG 
 - 
X_XSS_PROTECTIONpublic static final BrowserSecurityHeaders X_XSS_PROTECTION 
 - 
STRICT_TRANSPORT_SECURITYpublic static final BrowserSecurityHeaders STRICT_TRANSPORT_SECURITY 
 - 
REFERRER_POLICYpublic static final BrowserSecurityHeaders REFERRER_POLICY 
 
- 
 - 
Field Detail- 
realmDefaultHeaders@Deprecated public static final Map<String,String> realmDefaultHeaders Deprecated.
 
- 
 - 
Method Detail- 
valuespublic 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
 
 - 
valueOfpublic 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 name
- NullPointerException- if the argument is null
 
 - 
getKeypublic String getKey() 
 - 
getHeaderNamepublic String getHeaderName() 
 - 
getDefaultValuepublic String getDefaultValue() 
 
- 
 
-