Enum Class ArchiveTimestampHashIndexVersion

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

public enum ArchiveTimestampHashIndexVersion extends Enum<ArchiveTimestampHashIndexVersion>
Defines a version type of the ats-hash-index attribute from the archive-time-stamp-v3
  • Enum Constant Details

    • ATS_HASH_INDEX

      public static final ArchiveTimestampHashIndexVersion ATS_HASH_INDEX
      Deprecated ats-hash-index Attribute. See TS 101-733, ch. "6.4.2 ats-hash-index Attribute"
    • ATS_HASH_INDEX_V2

      public static final ArchiveTimestampHashIndexVersion ATS_HASH_INDEX_V2
      Deprecated ats-hash-index-v2 Attribute. See ETSI EN 319 122-1 v1.0.0, ch. "5.5.2 The ats-hash-index-v2 attribute"
    • ATS_HASH_INDEX_V3

      public static final ArchiveTimestampHashIndexVersion ATS_HASH_INDEX_V3
      ats-hash-index-v3 Attribute. See ETSI EN 319 122-1 v1.1.0, ch. "5.5.2 The ats-hash-index-v3 attribute"
  • Method Details

    • values

      public static ArchiveTimestampHashIndexVersion[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ArchiveTimestampHashIndexVersion valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getLabel

      public String getLabel()
      Gets a user-friendly String text label
      Returns:
      String
    • getOid

      public String getOid()
      Gets unique object identifier
      Returns:
      String
    • forLabel

      public static ArchiveTimestampHashIndexVersion forLabel(String label)
      Gets the ArchiveTimeStampHashIndexType for the given label, if found
      Parameters:
      label - String user-friendly text label identifying the ats-hash-index version type
      Returns:
      ArchiveTimestampHashIndexVersion
    • forOid

      public static ArchiveTimestampHashIndexVersion forOid(String oid)
      Gets the ArchiveTimeStampHashIndexType for the given OID, if found
      Parameters:
      oid - String unique object identifier
      Returns:
      ArchiveTimestampHashIndexVersion