public class EvidenceRecord extends ASN1Object
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
Constructor and Description |
---|
EvidenceRecord(AlgorithmIdentifier[] digestAlgorithms,
CryptoInfos cryptoInfos,
EncryptionInfo encryptionInfo,
ArchiveTimeStampSequence archiveTimeStampSequence) |
Modifier and Type | Method and Description |
---|---|
EvidenceRecord |
addArchiveTimeStamp(ArchiveTimeStamp ats,
boolean newChain)
Return a new EvidenceRecord with an added ArchiveTimeStamp
|
ArchiveTimeStampSequence |
getArchiveTimeStampSequence() |
AlgorithmIdentifier[] |
getDigestAlgorithms() |
static EvidenceRecord |
getInstance(ASN1TaggedObject tagged,
boolean explicit) |
static EvidenceRecord |
getInstance(Object obj)
Return an EvidenceRecord from the given object.
|
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
String |
toString() |
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
public EvidenceRecord(AlgorithmIdentifier[] digestAlgorithms, CryptoInfos cryptoInfos, EncryptionInfo encryptionInfo, ArchiveTimeStampSequence archiveTimeStampSequence)
public static EvidenceRecord getInstance(Object obj)
obj
- the object we want converted.IllegalArgumentException
- if the object cannot be converted.public static EvidenceRecord getInstance(ASN1TaggedObject tagged, boolean explicit)
public AlgorithmIdentifier[] getDigestAlgorithms()
public ArchiveTimeStampSequence getArchiveTimeStampSequence()
public EvidenceRecord addArchiveTimeStamp(ArchiveTimeStamp ats, boolean newChain)
ats
- the archive timestamp to addnewChain
- 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)public ASN1Primitive toASN1Primitive()
ASN1Object
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object
Copyright © 2021 BouncyCastle.org. All rights reserved.