Package eu.europa.esig.dss.enumerations
Enum EvidenceRecordTypeEnum
- All Implemented Interfaces:
Serializable,Comparable<EvidenceRecordTypeEnum>
Defines supported Evidence Record types
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn XML Evidence Record according to RFC 4998An XML Evidence Record according to RFC 6283 -
Method Summary
Modifier and TypeMethodDescriptionstatic EvidenceRecordTypeEnumGets anEvidenceRecordEnumfor the givenlabelstring valuegetLabel()Gets a user-friendly descriptor of an evidence record typestatic EvidenceRecordTypeEnumReturns the enum constant of this type with the specified name.static EvidenceRecordTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
XML_EVIDENCE_RECORD
An XML Evidence Record according to RFC 6283 -
ASN1_EVIDENCE_RECORD
An XML Evidence Record according to RFC 4998
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getLabel
Gets a user-friendly descriptor of an evidence record type- Returns:
String
-
fromLabel
Gets anEvidenceRecordEnumfor the givenlabelstring value- Parameters:
label-Stringrepresenting a user-friendly identifier for an evidence record- Returns:
EvidenceRecordTypeEnum
-