public static enum SecurityProperties.Headers.ContentSecurityPolicyMode extends Enum<SecurityProperties.Headers.ContentSecurityPolicyMode>
Enum Constant and Description |
---|
DEFAULT
Use the 'Content-Security-Policy' header.
|
REPORT_ONLY
Use the 'Content-Security-Policy-Report-Only' header.
|
Modifier and Type | Method and Description |
---|---|
static SecurityProperties.Headers.ContentSecurityPolicyMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SecurityProperties.Headers.ContentSecurityPolicyMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecurityProperties.Headers.ContentSecurityPolicyMode DEFAULT
public static final SecurityProperties.Headers.ContentSecurityPolicyMode REPORT_ONLY
public static SecurityProperties.Headers.ContentSecurityPolicyMode[] values()
for (SecurityProperties.Headers.ContentSecurityPolicyMode c : SecurityProperties.Headers.ContentSecurityPolicyMode.values()) System.out.println(c);
public static SecurityProperties.Headers.ContentSecurityPolicyMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2019 Pivotal Software, Inc.. All rights reserved.