Package org.bouncycastle.asn1
Class ASN1EncodableVector
java.lang.Object
org.bouncycastle.asn1.ASN1EncodableVector
Mutable class for building ASN.1 constructed objects such as SETs or SEQUENCEs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(ASN1Encodable obj) Add an encodable to the vector.void
addAll
(ASN1EncodableVector other) Add the contents of another vector.get
(int i) Return the object at position i in this vector.int
size()
Return the size of the vector.
-
Constructor Details
-
ASN1EncodableVector
public ASN1EncodableVector()Base constructor.
-
-
Method Details
-
add
Add an encodable to the vector.- Parameters:
obj
- the encodable to add.
-
addAll
Add the contents of another vector.- Parameters:
other
- the vector to add.
-
get
Return the object at position i in this vector.- Parameters:
i
- the index of the object of interest.- Returns:
- the object at position i.
-
size
public int size()Return the size of the vector.- Returns:
- the object count in the vector.
-