public class ArchiveTimeStamp
extends 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(AlgorithmIdentifier digestAlgorithm,
Attributes attributes,
PartialHashtree[] reducedHashTree,
ContentInfo timeStamp) |
ArchiveTimeStamp(AlgorithmIdentifier digestAlgorithm,
PartialHashtree[] reducedHashTree,
ContentInfo timeStamp) |
ArchiveTimeStamp(ContentInfo timeStamp) |
| Modifier and Type | Method and Description |
|---|---|
AlgorithmIdentifier |
getDigestAlgorithm()
Return the contents of the digestAlgorithm field - null if not set.
|
AlgorithmIdentifier |
getDigestAlgorithmIdentifier() |
static ArchiveTimeStamp |
getInstance(java.lang.Object obj)
Return an ArchiveTimestamp from the given object.
|
PartialHashtree[] |
getReducedHashTree() |
ContentInfo |
getTimeStamp() |
ASN1Primitive |
toASN1Primitive() |
public ArchiveTimeStamp(AlgorithmIdentifier digestAlgorithm,
PartialHashtree[] reducedHashTree,
ContentInfo timeStamp)
public ArchiveTimeStamp(ContentInfo timeStamp)
public ArchiveTimeStamp(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 AlgorithmIdentifier getDigestAlgorithmIdentifier()
public AlgorithmIdentifier getDigestAlgorithm()
public PartialHashtree[] getReducedHashTree()
public ContentInfo getTimeStamp()
public ASN1Primitive toASN1Primitive()