Top Description Fields Constructors Methods
org.bouncycastle.asn1.tsp

public Class ArchiveTimeStampSequence

extends ASN1Object
Class Inheritance
Imports
java.util.Enumeration, org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .DERSequence

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

Field Summary

Modifier and TypeField and Description
private ASN1Sequence

Constructor Summary

AccessConstructor and Description
private
public
public

Method Summary

Modifier and TypeMethod and Description
public ArchiveTimeStampSequence

Returns:

returns the modified sequence.
append
(ArchiveTimeStampChain chain)

Adds an ArchiveTimeStampChain to the ArchiveTimeStamp sequence.

public ArchiveTimeStampChain[]

Returns:

the ASN1Sequence containing the ArchiveTimeStamp chains.
getArchiveTimeStampChains
()

Returns the sequence of ArchiveTimeStamp chains that compose the ArchiveTimeStamp sequence.

public static ArchiveTimeStampSequence

Returns:

an ArchiveTimeStampSequence instance, or null.
getInstance
(final Object
the object we want converted.
obj
)

Return an ArchiveTimestampSequence from the given object.

public int
size()

public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Inherited from org.bouncycastle.asn1.ASN1Object:
encodeToencodeToequalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

archiveTimeStampChainsback to summary
private ASN1Sequence archiveTimeStampChains

Constructor Detail

ArchiveTimeStampSequenceback to summary
private ArchiveTimeStampSequence(final ASN1Sequence sequence)
ArchiveTimeStampSequenceback to summary
public ArchiveTimeStampSequence(ArchiveTimeStampChain archiveTimeStampChain)
ArchiveTimeStampSequenceback to summary
public ArchiveTimeStampSequence(ArchiveTimeStampChain[] archiveTimeStampChains)

Method Detail

appendback to summary
public ArchiveTimeStampSequence append(ArchiveTimeStampChain chain)

Adds an ArchiveTimeStampChain to the ArchiveTimeStamp sequence.

Parameters
chain:ArchiveTimeStampChain

the ArchiveTimeStampChain to add

Returns:ArchiveTimeStampSequence

returns the modified sequence.

getArchiveTimeStampChainsback to summary
public ArchiveTimeStampChain[] getArchiveTimeStampChains()

Returns the sequence of ArchiveTimeStamp chains that compose the ArchiveTimeStamp sequence.

Returns:ArchiveTimeStampChain[]

the ASN1Sequence containing the ArchiveTimeStamp chains.

getInstanceback to summary
public static ArchiveTimeStampSequence getInstance(final Object obj)

Return an ArchiveTimestampSequence from the given object.

Parameters
obj:Object

the object we want converted.

Returns:ArchiveTimeStampSequence

an ArchiveTimeStampSequence instance, or null.

Exceptions
IllegalArgumentException:
if the object cannot be converted.
sizeback to summary
public int size()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.