Top Description Fields Constructors Methods
org.bouncycastle.asn1

pack-priv Class LazyEncodedSequence

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

Note

this class is for processing DER/DL encoded sequences only.

Field Summary

Modifier and TypeField and Description
private byte[]
Inherited from org.bouncycastle.asn1.ASN1Sequence:
seq

Constructor Summary

AccessConstructor and Description
pack-priv
LazyEncodedSequence(byte[] encoded)

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.
public synchronized ASN1Encodable
getObjectAt(int
the sequence number (starting at zero) of the object
index
)

Overrides org.bouncycastle.asn1.ASN1Sequence.getObjectAt.

Return the object at the sequence position indicated by index.
public synchronized Enumeration<E>
private void
public synchronized int
size()

Overrides org.bouncycastle.asn1.ASN1Sequence.size.

Return the number of objects in this sequence.
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:
asn1EqualsgetInstancegetInstancehashCodeisConstructediteratorparsertoArraytoString

Field Detail

encodedback to summary
private byte[] encoded

Constructor Detail

LazyEncodedSequenceback to summary
pack-priv LazyEncodedSequence(byte[] encoded) throws IOException

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.
getObjectAtback to summary
public synchronized ASN1Encodable getObjectAt(int index)

Overrides org.bouncycastle.asn1.ASN1Sequence.getObjectAt.

Doc from org.bouncycastle.asn1.ASN1Sequence.getObjectAt.

Return the object at the sequence position indicated by index.

Parameters
index:int

the sequence number (starting at zero) of the object

Returns:ASN1Encodable

the object at the sequence position indicated by index.

getObjectsback to summary
public synchronized Enumeration<E> getObjects()

Overrides org.bouncycastle.asn1.ASN1Sequence.getObjects.

parseback to summary
private void parse()
sizeback to summary
public synchronized int size()

Overrides org.bouncycastle.asn1.ASN1Sequence.size.

Doc from org.bouncycastle.asn1.ASN1Sequence.size.

Return the number of objects in this sequence.

Returns:int

the number of objects in this sequence.

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.