public class EvidenceRecord
extends org.bouncycastle.asn1.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(org.bouncycastle.asn1.x509.AlgorithmIdentifier[] digestAlgorithms,
CryptoInfos cryptoInfos,
EncryptionInfo encryptionInfo,
ArchiveTimeStampSequence archiveTimeStampSequence) |
EvidenceRecord(CryptoInfos cryptoInfos,
EncryptionInfo encryptionInfo,
ArchiveTimeStamp archiveTimeStamp)
Build a basic evidence record from an initial
ArchiveTimeStamp.
|
Modifier and Type | Method and Description |
---|---|
EvidenceRecord |
addArchiveTimeStamp(ArchiveTimeStamp ats,
boolean newChain)
Return a new EvidenceRecord with an added ArchiveTimeStamp
|
ArchiveTimeStampSequence |
getArchiveTimeStampSequence() |
org.bouncycastle.asn1.x509.AlgorithmIdentifier[] |
getDigestAlgorithms() |
static EvidenceRecord |
getInstance(org.bouncycastle.asn1.ASN1TaggedObject tagged,
boolean explicit) |
static EvidenceRecord |
getInstance(java.lang.Object obj)
Return an EvidenceRecord from the given object.
|
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive() |
java.lang.String |
toString() |
public EvidenceRecord(CryptoInfos cryptoInfos, EncryptionInfo encryptionInfo, ArchiveTimeStamp archiveTimeStamp)
cryptoInfos
- encryptionInfo
- archiveTimeStamp
- public EvidenceRecord(org.bouncycastle.asn1.x509.AlgorithmIdentifier[] digestAlgorithms, CryptoInfos cryptoInfos, EncryptionInfo encryptionInfo, ArchiveTimeStampSequence archiveTimeStampSequence)
public static EvidenceRecord getInstance(java.lang.Object obj)
obj
- the object we want converted.java.lang.IllegalArgumentException
- if the object cannot be converted.public static EvidenceRecord getInstance(org.bouncycastle.asn1.ASN1TaggedObject tagged, boolean explicit)
public org.bouncycastle.asn1.x509.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 java.lang.String toString()
toString
in class java.lang.Object
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface org.bouncycastle.asn1.ASN1Encodable
toASN1Primitive
in class org.bouncycastle.asn1.ASN1Object