Package org.bouncycastle.asn1.tsp
Class ArchiveTimeStamp
- java.lang.Object
-
- org.bouncycastle.asn1.ASN1Object
-
- org.bouncycastle.asn1.tsp.ArchiveTimeStamp
-
- All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable
,org.bouncycastle.util.Encodable
public class ArchiveTimeStamp extends org.bouncycastle.asn1.ASN1Object
Implementation of the Archive Timestamp type defined in RFC4998. {@see RFC 4998}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 Summary
Constructors Constructor Description ArchiveTimeStamp(ContentInfo timeStamp)
ArchiveTimeStamp(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlgorithm, Attributes attributes, PartialHashtree[] reducedHashTree, ContentInfo timeStamp)
ArchiveTimeStamp(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlgorithm, PartialHashtree[] reducedHashTree, ContentInfo timeStamp)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.asn1.x509.AlgorithmIdentifier
getDigestAlgorithm()
Return the contents of the digestAlgorithm field - null if not set.org.bouncycastle.asn1.x509.AlgorithmIdentifier
getDigestAlgorithmIdentifier()
static ArchiveTimeStamp
getInstance(java.lang.Object obj)
Return an ArchiveTimestamp from the given object.PartialHashtree[]
getReducedHashTree()
ContentInfo
getTimeStamp()
org.bouncycastle.asn1.ASN1Primitive
toASN1Primitive()
-
-
-
Constructor Detail
-
ArchiveTimeStamp
public ArchiveTimeStamp(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlgorithm, PartialHashtree[] reducedHashTree, ContentInfo timeStamp)
-
ArchiveTimeStamp
public ArchiveTimeStamp(ContentInfo timeStamp)
-
ArchiveTimeStamp
public ArchiveTimeStamp(org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlgorithm, Attributes attributes, PartialHashtree[] reducedHashTree, ContentInfo timeStamp)
-
-
Method Detail
-
getInstance
public static ArchiveTimeStamp getInstance(java.lang.Object obj)
Return an ArchiveTimestamp from the given object.- Parameters:
obj
- the object we want converted.- Returns:
- an ArchiveTimestamp instance, or null.
- Throws:
java.lang.IllegalArgumentException
- if the object cannot be converted.
-
getDigestAlgorithmIdentifier
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestAlgorithmIdentifier()
-
getDigestAlgorithm
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestAlgorithm()
Return the contents of the digestAlgorithm field - null if not set.- Returns:
- the contents of the digestAlgorithm field, or null if not set.
-
getReducedHashTree
public PartialHashtree[] getReducedHashTree()
-
getTimeStamp
public ContentInfo getTimeStamp()
-
toASN1Primitive
public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
- Specified by:
toASN1Primitive
in interfaceorg.bouncycastle.asn1.ASN1Encodable
- Specified by:
toASN1Primitive
in classorg.bouncycastle.asn1.ASN1Object
-
-