Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class BERSequence

extends ASN1Sequence
Class Inheritance
Imports
java.io.IOException, java.util.Enumeration

Indefinite length SEQUENCE of objects.

Length field has value 0x80, and the sequence ends with two bytes of: 0x00, 0x00.

For X.690 syntax rules, see ASN1Sequence.

Field Summary

Inherited from org.bouncycastle.asn1.ASN1Sequence:
seq

Constructor Summary

AccessConstructor and Description
public
BERSequence()

Create an empty sequence

public
BERSequence(ASN1Encodable obj)

Create a sequence containing one object

public
BERSequence(ASN1EncodableVector v)

Create a sequence containing a vector of objects.

public
BERSequence(ASN1Encodable[] array)

Create a sequence containing an array of objects.

Method Summary

Modifier and TypeMethod and Description
pack-priv void
pack-priv int
encodedLength()

Implements abstract org.bouncycastle.asn1.ASN1Primitive.encodedLength.

Return the length of the encoding this object will produce.
Inherited from org.bouncycastle.asn1.ASN1Sequence:
asn1EqualsgetInstancegetInstancegetObjectAtgetObjectshashCodeisConstructediteratorparsersizetoArraytoDERObjecttoDLObjecttoString

Constructor Detail

BERSequenceback to summary
public BERSequence()

Create an empty sequence

BERSequenceback to summary
public BERSequence(ASN1Encodable obj)

Create a sequence containing one object

BERSequenceback to summary
public BERSequence(ASN1EncodableVector v)

Create a sequence containing a vector of objects.

BERSequenceback to summary
public BERSequence(ASN1Encodable[] array)

Create a sequence containing an array of objects.

Method Detail

encodeback to summary
pack-priv void encode(ASN1OutputStream out) throws IOException

Implements abstract org.bouncycastle.asn1.ASN1Sequence.encode.

encodedLengthback to summary
pack-priv int encodedLength() throws IOException

Implements abstract org.bouncycastle.asn1.ASN1Primitive.encodedLength.

Doc from org.bouncycastle.asn1.ASN1Primitive.encodedLength.

Return the length of the encoding this object will produce.

Returns:int

the length of the object's encoding.

Exceptions
IOException:
if the encoding length cannot be calculated.