Package org.xipki.cmp
Enum ProtectionResult
- java.lang.Object
-
- java.lang.Enum<ProtectionResult>
-
- org.xipki.cmp.ProtectionResult
-
- All Implemented Interfaces:
Serializable,Comparable<ProtectionResult>
public enum ProtectionResult extends Enum<ProtectionResult>
Protection verification result enum.- Since:
- 2.0.0
- Author:
- Lijun Liao (xipki)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MAC_ALGO_FORBIDDENMAC_INVALIDMAC_VALIDSENDER_NOT_AUTHORIZEDSIGNATURE_ALGO_FORBIDDENSIGNATURE_INVALIDSIGNATURE_VALID
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProtectionResultvalueOf(String name)Returns the enum constant of this type with the specified name.static ProtectionResult[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SIGNATURE_VALID
public static final ProtectionResult SIGNATURE_VALID
-
SIGNATURE_INVALID
public static final ProtectionResult SIGNATURE_INVALID
-
SIGNATURE_ALGO_FORBIDDEN
public static final ProtectionResult SIGNATURE_ALGO_FORBIDDEN
-
MAC_VALID
public static final ProtectionResult MAC_VALID
-
MAC_INVALID
public static final ProtectionResult MAC_INVALID
-
MAC_ALGO_FORBIDDEN
public static final ProtectionResult MAC_ALGO_FORBIDDEN
-
SENDER_NOT_AUTHORIZED
public static final ProtectionResult SENDER_NOT_AUTHORIZED
-
-
Method Detail
-
values
public static ProtectionResult[] 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 (ProtectionResult c : ProtectionResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProtectionResult 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
-
-