Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class BERSequence

extends ASN1Sequence
Class Inheritance
Imports
java.io.IOException

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:
elementsTYPE

Constructor Summary

AccessConstructor and Description
public
BERSequence()

Create an empty sequence.

public
BERSequence(ASN1Encodable
the object to go in the sequence.
element
)

Create a sequence containing one object.

public
BERSequence(ASN1Encodable
the first object to go in the sequence.
element1
,
ASN1Encodable
the second object to go in the sequence.
element2
)

Create a sequence containing two objects.

public
BERSequence(ASN1EncodableVector elementVector)

Create a sequence containing a vector of objects.

public
BERSequence(ASN1Encodable[] elements)

Create a sequence containing an array of objects.

Method Summary

Modifier and TypeMethod and Description
pack-priv void
encode(ASN1OutputStream out, boolean withTag)

Implements abstract org.bouncycastle.asn1.ASN1Primitive.encode.

pack-priv int
pack-priv ASN1BitString
pack-priv ASN1External
pack-priv ASN1OctetString
pack-priv ASN1Set
Inherited from org.bouncycastle.asn1.ASN1Sequence:
asn1EqualsencodeConstructedgetConstructedBitStringsgetConstructedOctetStringsgetInstancegetInstancegetObjectAtgetObjectshashCodeiteratorparsersizetoArraytoArrayInternaltoDERObjecttoDLObjecttoString

Constructor Detail

BERSequenceback to summary
public BERSequence()

Create an empty sequence.

BERSequenceback to summary
public BERSequence(ASN1Encodable element)

Create a sequence containing one object.

Parameters
element:ASN1Encodable

the object to go in the sequence.

BERSequenceback to summary
public BERSequence(ASN1Encodable element1, ASN1Encodable element2)

Create a sequence containing two objects.

Parameters
element1:ASN1Encodable

the first object to go in the sequence.

element2:ASN1Encodable

the second object to go in the sequence.

BERSequenceback to summary
public BERSequence(ASN1EncodableVector elementVector)

Create a sequence containing a vector of objects.

BERSequenceback to summary
public BERSequence(ASN1Encodable[] elements)

Create a sequence containing an array of objects.

Method Detail

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

Implements abstract org.bouncycastle.asn1.ASN1Primitive.encode.

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

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

toASN1BitStringback to summary
pack-priv ASN1BitString toASN1BitString()

Implements abstract org.bouncycastle.asn1.ASN1Sequence.toASN1BitString.

toASN1Externalback to summary
pack-priv ASN1External toASN1External()

Implements abstract org.bouncycastle.asn1.ASN1Sequence.toASN1External.

toASN1OctetStringback to summary
pack-priv ASN1OctetString toASN1OctetString()

Implements abstract org.bouncycastle.asn1.ASN1Sequence.toASN1OctetString.

toASN1Setback to summary
pack-priv ASN1Set toASN1Set()

Implements abstract org.bouncycastle.asn1.ASN1Sequence.toASN1Set.