public class ArchiveTimeStamp
extends org.bouncycastle.asn1.ASN1Object
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
Constructor and Description |
---|
ArchiveTimeStamp(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlgorithm,
Attributes attributes,
PartialHashtree[] reducedHashTree,
ContentInfo timeStamp) |
ArchiveTimeStamp(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlgorithm,
PartialHashtree[] reducedHashTree,
ContentInfo timeStamp) |
ArchiveTimeStamp(ContentInfo timeStamp) |
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getDigestAlgorithm()
Return the contents of the digestAlgorithm field - null if not set.
|
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getDigestAlgorithmIdentifier() |
PartialHashtree |
getHashTreeLeaf()
Return the first node in the reduced hash tree which contains the leaf node.
|
static ArchiveTimeStamp |
getInstance(java.lang.Object obj)
Return an ArchiveTimestamp from the given object.
|
PartialHashtree[] |
getReducedHashTree() |
ContentInfo |
getTimeStamp() |
byte[] |
getTimeStampDigestValue() |
org.bouncycastle.asn1.ASN1Primitive |
toASN1Primitive() |
public ArchiveTimeStamp(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlgorithm, PartialHashtree[] reducedHashTree, ContentInfo timeStamp)
public ArchiveTimeStamp(ContentInfo timeStamp)
public ArchiveTimeStamp(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlgorithm, Attributes attributes, PartialHashtree[] reducedHashTree, ContentInfo timeStamp)
public static ArchiveTimeStamp getInstance(java.lang.Object obj)
obj
- the object we want converted.java.lang.IllegalArgumentException
- if the object cannot be converted.public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestAlgorithmIdentifier()
public byte[] getTimeStampDigestValue()
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestAlgorithm()
public PartialHashtree getHashTreeLeaf()
public PartialHashtree[] getReducedHashTree()
public ContentInfo getTimeStamp()
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface org.bouncycastle.asn1.ASN1Encodable
toASN1Primitive
in class org.bouncycastle.asn1.ASN1Object