Package com.adobe.xfa.protocol
Enum Protocol.TrustType
- java.lang.Object
-
- java.lang.Enum<Protocol.TrustType>
-
- com.adobe.xfa.protocol.Protocol.TrustType
-
- All Implemented Interfaces:
Serializable
,Comparable<Protocol.TrustType>
- Enclosing interface:
- Protocol
public static enum Protocol.TrustType extends Enum<Protocol.TrustType>
An enumeration of trust enforcement rules.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CROSS_DOMAIN
Trust cross domain URLs.DATA_INJECTION
Trust URLs coming from data.SCRIPT_INJECTION
Trust URLs coming from script.URL
Trust url.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Protocol.TrustType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Protocol.TrustType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
URL
public static final Protocol.TrustType URL
Trust url.
-
CROSS_DOMAIN
public static final Protocol.TrustType CROSS_DOMAIN
Trust cross domain URLs.
-
DATA_INJECTION
public static final Protocol.TrustType DATA_INJECTION
Trust URLs coming from data.
-
SCRIPT_INJECTION
public static final Protocol.TrustType SCRIPT_INJECTION
Trust URLs coming from script.
-
-
Method Detail
-
values
public static Protocol.TrustType[] 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 (Protocol.TrustType c : Protocol.TrustType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Protocol.TrustType 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
-
-