Class DLSequence
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.ASN1Primitive
org.bouncycastle.asn1.ASN1Sequence
org.bouncycastle.asn1.DLSequence
- All Implemented Interfaces:
Iterable<ASN1Encodable>, ASN1Encodable, Encodable, Iterable<ASN1Encodable>
The DLSequence encodes a SEQUENCE using definite length form.
-
Constructor Summary
ConstructorsConstructorDescriptionCreate an empty sequence.DLSequence(ASN1Encodable element) Create a sequence containing one object.DLSequence(ASN1Encodable[] elements) create a sequence containing an array of objects.DLSequence(ASN1Encodable element1, ASN1Encodable element2) Create a sequence containing two objects.DLSequence(ASN1EncodableVector elementVector) create a sequence containing a vector of objects. -
Method Summary
Methods inherited from class ASN1Sequence
getInstance, getInstance, getObjectAt, getObjects, getTagged, hashCode, iterator, parser, size, toArray, toStringMethods inherited from class ASN1Primitive
encodeTo, encodeTo, equals, equals, equals, fromByteArray, toASN1PrimitiveMethods inherited from class ASN1Object
getEncoded, getEncoded, hasEncodedTagValueMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
DLSequence
public DLSequence()Create an empty sequence. -
DLSequence
Create a sequence containing one object.- Parameters:
element- the object to go in the sequence.
-
DLSequence
Create a sequence containing two objects.- Parameters:
element1- the first object to go in the sequence.element2- the second object to go in the sequence.
-
DLSequence
create a sequence containing a vector of objects.- Parameters:
elementVector- the vector of objects to make up the sequence.
-
DLSequence
create a sequence containing an array of objects.- Parameters:
elements- the array of objects to make up the sequence.
-