class LazyEncodedSequence extends ASN1Sequence
Modifier and Type | Field and Description |
---|---|
private byte[] |
encoded |
seq
Constructor and Description |
---|
LazyEncodedSequence(byte[] encoded) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
encode(ASN1OutputStream out) |
(package private) int |
encodedLength() |
ASN1Encodable |
getObjectAt(int index)
Return the object at the sequence position indicated by index.
|
Enumeration |
getObjects() |
private void |
parse() |
int |
size()
Return the number of objects in this sequence.
|
(package private) ASN1Primitive |
toDERObject()
Change current SEQUENCE object to be encoded as
DERSequence . |
(package private) ASN1Primitive |
toDLObject()
Change current SEQUENCE object to be encoded as
DLSequence . |
asn1Equals, getInstance, getInstance, hashCode, isConstructed, parser, toArray, toString
equals, fromByteArray, toASN1Primitive
getEncoded, getEncoded, hasEncodedTagValue, toASN1Object
private byte[] encoded
LazyEncodedSequence(byte[] encoded) throws IOException
IOException
private void parse()
public ASN1Encodable getObjectAt(int index)
ASN1Sequence
getObjectAt
in class ASN1Sequence
index
- the sequence number (starting at zero) of the objectpublic Enumeration getObjects()
getObjects
in class ASN1Sequence
public int size()
ASN1Sequence
size
in class ASN1Sequence
ASN1Primitive toDERObject()
ASN1Sequence
DERSequence
.
This is part of Distinguished Encoding Rules form serialization.toDERObject
in class ASN1Sequence
ASN1Primitive toDLObject()
ASN1Sequence
DLSequence
.
This is part of Direct Length form serialization.toDLObject
in class ASN1Sequence
int encodedLength() throws IOException
encodedLength
in class ASN1Primitive
IOException
void encode(ASN1OutputStream out) throws IOException
encode
in class ASN1Sequence
IOException