Enum EvidenceRecordTypeEnum

java.lang.Object
java.lang.Enum<EvidenceRecordTypeEnum>
eu.europa.esig.dss.enumerations.EvidenceRecordTypeEnum
All Implemented Interfaces:
Serializable, Comparable<EvidenceRecordTypeEnum>

public enum EvidenceRecordTypeEnum extends Enum<EvidenceRecordTypeEnum>
Defines supported Evidence Record types
  • Enum Constant Details

    • XML_EVIDENCE_RECORD

      public static final EvidenceRecordTypeEnum XML_EVIDENCE_RECORD
      An XML Evidence Record according to RFC 6283
    • ASN1_EVIDENCE_RECORD

      public static final EvidenceRecordTypeEnum ASN1_EVIDENCE_RECORD
      An XML Evidence Record according to RFC 4998
  • Method Details

    • values

      public static EvidenceRecordTypeEnum[] 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

      public static EvidenceRecordTypeEnum 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
    • getLabel

      public String getLabel()
      Gets a user-friendly descriptor of an evidence record type
      Returns:
      String
    • fromLabel

      public static EvidenceRecordTypeEnum fromLabel(String label)
      Gets an EvidenceRecordEnum for the given label string value
      Parameters:
      label - String representing a user-friendly identifier for an evidence record
      Returns:
      EvidenceRecordTypeEnum