Class EvidenceRecord

  • All Implemented Interfaces:
    ASN1Encodable, Encodable

    public class EvidenceRecord
    extends ASN1Object
    RFC 4998: Evidence Record Syntax (ERS)

     EvidenceRecord ::= SEQUENCE {
       version                   INTEGER { v1(1) } ,
       digestAlgorithms          SEQUENCE OF AlgorithmIdentifier,
       cryptoInfos               [0] CryptoInfos OPTIONAL,
       encryptionInfo            [1] EncryptionInfo OPTIONAL,
       archiveTimeStampSequence  ArchiveTimeStampSequence
     }
    
     CryptoInfos ::= SEQUENCE SIZE (1..MAX) OF Attribute
     
    • Method Detail

      • getInstance

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

        public EvidenceRecord addArchiveTimeStamp​(ArchiveTimeStamp ats,
                                                  boolean newChain)
        Return a new EvidenceRecord with an added ArchiveTimeStamp
        Parameters:
        ats - the archive timestamp to add
        newChain - states whether this new archive timestamp must be added as part of a new sequence (i.e. in the case of hashtree renewal) or not (i.e. in the case of timestamp renewal)
        Returns:
        the new EvidenceRecord
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object