Package org.bouncycastle.asn1.tsp
Class ArchiveTimeStampChain
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.tsp.ArchiveTimeStampChain
- All Implemented Interfaces:
ASN1Encodable,Encodable
Implementation of ArchiveTimeStampChain type, as defined in RFC4998 and RFC6283.
An ArchiveTimeStampChain corresponds to a SEQUENCE OF ArchiveTimeStamps, and has the following ASN.1 Syntax:
ArchiveTimeStampChain ::= SEQUENCE OF ArchiveTimeStamp
-
Constructor Summary
ConstructorsConstructorDescriptionArchiveTimeStampChain(ArchiveTimeStamp archiveTimeStamp) ArchiveTimeStampChain(ArchiveTimeStamp[] archiveTimeStamps) -
Method Summary
Modifier and TypeMethodDescriptionappend(ArchiveTimeStamp archiveTimeStamp) Adds anArchiveTimeStampobject to the archive timestamp chain.static ArchiveTimeStampChaingetInstance(Object obj) Return an ArchiveTimeStampChain from the given object.Method providing a primitive representation of this object suitable for encoding.Methods inherited from class org.bouncycastle.asn1.ASN1Object
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode
-
Constructor Details
-
ArchiveTimeStampChain
-
ArchiveTimeStampChain
-
-
Method Details
-
getInstance
Return an ArchiveTimeStampChain from the given object.- Parameters:
obj- the object we want converted.- Returns:
- an ArchiveTimeStampChain instance, or null.
- Throws:
IllegalArgumentException- if the object cannot be converted.
-
getArchiveTimestamps
-
append
Adds anArchiveTimeStampobject to the archive timestamp chain.- Parameters:
archiveTimeStamp- theArchiveTimeStampto add.- Returns:
- returns the modified chain.
-
toASN1Primitive
Description copied from class:ASN1ObjectMethod providing a primitive representation of this object suitable for encoding.- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object- Returns:
- a primitive representation of this object.
-