Top Description Fields Constructors Methods
org.bouncycastle.asn1

public Class DERSequence

extends ASN1Sequence
Class Inheritance
Imports
java.io.IOException

Definite length SEQUENCE, encoding tells explicit number of bytes that the content of this sequence occupies.

For X.690 syntax rules, see ASN1Sequence.

Field Summary

Modifier and TypeField and Description
private int
Inherited from org.bouncycastle.asn1.ASN1Sequence:
elementsTYPE

Constructor Summary

AccessConstructor and Description
public
DERSequence()

Create an empty sequence

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

Create a sequence containing one object

public
DERSequence(ASN1EncodableVector
the vector of objects to make up the sequence.
elementVector
)

Create a sequence containing a vector of objects.

public
DERSequence(ASN1Encodable[]
the array of objects to make up the sequence.
elements
)

Create a sequence containing an array of objects.

pack-priv
DERSequence(ASN1Encodable[] elements, boolean clone)

Method Summary

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

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

pack-priv int
private int
pack-priv ASN1BitString
pack-priv ASN1External
pack-priv ASN1OctetString
pack-priv ASN1Set
pack-priv ASN1Primitive
toDERObject()

Overrides org.bouncycastle.asn1.ASN1Sequence.toDERObject.

Change current SEQUENCE object to be encoded as DERSequence.
pack-priv ASN1Primitive
toDLObject()

Overrides org.bouncycastle.asn1.ASN1Sequence.toDLObject.

Change current SEQUENCE object to be encoded as DLSequence.
Inherited from org.bouncycastle.asn1.ASN1Sequence:
asn1EqualsencodeConstructedgetConstructedBitStringsgetConstructedOctetStringsgetInstancegetInstancegetObjectAtgetObjectshashCodeiteratorparsersizetoArraytoArrayInternaltoString

Field Detail

contentsLengthback to summary
private int contentsLength

Constructor Detail

DERSequenceback to summary
public DERSequence()

Create an empty sequence

DERSequenceback to summary
public DERSequence(ASN1Encodable element)

Create a sequence containing one object

Parameters
element:ASN1Encodable

the object to go in the sequence.

DERSequenceback to summary
public DERSequence(ASN1EncodableVector elementVector)

Create a sequence containing a vector of objects.

Parameters
elementVector:ASN1EncodableVector

the vector of objects to make up the sequence.

DERSequenceback to summary
public DERSequence(ASN1Encodable[] elements)

Create a sequence containing an array of objects.

Parameters
elements:ASN1Encodable[]

the array of objects to make up the sequence.

DERSequenceback to summary
pack-priv DERSequence(ASN1Encodable[] elements, boolean clone)

Method Detail

convertback to summary
public static DERSequence convert(ASN1Sequence seq)
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.

getContentsLengthback to summary
private int getContentsLength() throws IOException
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.

toDERObjectback to summary
pack-priv ASN1Primitive toDERObject()

Overrides org.bouncycastle.asn1.ASN1Sequence.toDERObject.

Doc from org.bouncycastle.asn1.ASN1Sequence.toDERObject.

Change current SEQUENCE object to be encoded as DERSequence. This is part of Distinguished Encoding Rules form serialization.

Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Primitive.toDERObject.

a DER version of this.

toDLObjectback to summary
pack-priv ASN1Primitive toDLObject()

Overrides org.bouncycastle.asn1.ASN1Sequence.toDLObject.

Doc from org.bouncycastle.asn1.ASN1Sequence.toDLObject.

Change current SEQUENCE object to be encoded as DLSequence. This is part of Direct Length form serialization.

Returns:ASN1Primitive

Doc from org.bouncycastle.asn1.ASN1Primitive.toDLObject.

a DL version of this.