Package org.bouncycastle.asn1.tsp
Class ArchiveTimeStampSequence
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.tsp.ArchiveTimeStampSequence
- All Implemented Interfaces:
ASN1Encodable,Encodable
Implementation of ArchiveTimeStampSequence type, as defined in RFC4998.
An ArchiveTimeStampSequence corresponds to a SEQUENCE OF ArchiveTimeStampChains and has the following ASN.1 Syntax:
ArchiveTimeStampSequence ::= SEQUENCE OF ArchiveTimeStampChain
-
Constructor Summary
ConstructorsConstructorDescriptionArchiveTimeStampSequence(ArchiveTimeStampChain archiveTimeStampChain) ArchiveTimeStampSequence(ArchiveTimeStampChain[] archiveTimeStampChains) -
Method Summary
Modifier and TypeMethodDescriptionappend(ArchiveTimeStampChain chain) Adds anArchiveTimeStampChainto the ArchiveTimeStamp sequence.Returns the sequence of ArchiveTimeStamp chains that compose the ArchiveTimeStamp sequence.static ArchiveTimeStampSequencegetInstance(Object obj) Return an ArchiveTimestampSequence from the given object.intsize()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
-
ArchiveTimeStampSequence
-
ArchiveTimeStampSequence
-
-
Method Details
-
getInstance
Return an ArchiveTimestampSequence from the given object.- Parameters:
obj- the object we want converted.- Returns:
- an ArchiveTimeStampSequence instance, or null.
- Throws:
IllegalArgumentException- if the object cannot be converted.
-
getArchiveTimeStampChains
Returns the sequence of ArchiveTimeStamp chains that compose the ArchiveTimeStamp sequence.- Returns:
- the
ASN1Sequencecontaining the ArchiveTimeStamp chains.
-
size
public int size() -
append
Adds anArchiveTimeStampChainto the ArchiveTimeStamp sequence.- Parameters:
chain- theArchiveTimeStampChainto add- Returns:
- returns the modified sequence.
-
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.
-