Class ArchiveTimeStamp

  • All Implemented Interfaces:
    ASN1Encodable, Encodable

    public class ArchiveTimeStamp
    extends ASN1Object
    Implementation of the Archive Timestamp type defined in RFC4998. {@see RFC 4998}

    ASN.1 Archive Timestamp

    ArchiveTimeStamp ::= SEQUENCE { digestAlgorithm [Ø] AlgorithmIdentifier OPTIONAL, attributes [1] Attributes OPTIONAL, reducedHashtree [2] SEQUENCE OF PartialHashtree OPTIONAL, timeStamp ContentInfo}

    PartialHashtree ::= SEQUENCE OF OCTET STRING

    Attributes ::= SET SIZE (1..MAX) OF Attribute

    • Method Detail

      • getInstance

        public static ArchiveTimeStamp getInstance​(java.lang.Object obj)
        Return an ArchiveTimestamp from the given object.
        Parameters:
        obj - the object we want converted.
        Returns:
        an ArchiveTimestamp instance, or null.
        Throws:
        java.lang.IllegalArgumentException - if the object cannot be converted.
      • getDigestAlgorithm

        public AlgorithmIdentifier getDigestAlgorithm()
        Return the contents of the digestAlgorithm field - null if not set.
        Returns:
        the contents of the digestAlgorithm field, or null if not set.