public class DLSequence extends ASN1Sequence
| Modifier and Type | Field and Description |
|---|---|
private int |
bodyLength |
seq| Constructor and Description |
|---|
DLSequence()
Create an empty sequence
|
DLSequence(ASN1Encodable obj)
Create a sequence containing one object
|
DLSequence(ASN1Encodable[] array)
Create a sequence containing an array of objects.
|
DLSequence(ASN1EncodableVector v)
Create a sequence containing a vector of objects.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
encode(ASN1OutputStream out)
A note on the implementation:
|
(package private) int |
encodedLength() |
private int |
getBodyLength() |
asn1Equals, getInstance, getInstance, getObjectAt, getObjects, hashCode, isConstructed, parser, size, toArray, toDERObject, toDLObject, toStringequals, fromByteArray, toASN1PrimitivegetEncoded, getEncoded, hasEncodedTagValue, toASN1Objectprivate int bodyLength
public DLSequence()
public DLSequence(ASN1Encodable obj)
public DLSequence(ASN1EncodableVector v)
public DLSequence(ASN1Encodable[] array)
private int getBodyLength() throws IOException
IOExceptionint encodedLength() throws IOException
encodedLength in class ASN1PrimitiveIOExceptionvoid encode(ASN1OutputStream out) throws IOException
As DL requires the constructed, definite-length model to be used for structured types, this varies slightly from the ASN.1 descriptions given. Rather than just outputting SEQUENCE, we also have to specify CONSTRUCTED, and the objects length.
encode in class ASN1SequenceIOException