Package org.bouncycastle.asn1
Class BERSet
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.ASN1Primitive
org.bouncycastle.asn1.ASN1Set
org.bouncycastle.asn1.BERSet
- All Implemented Interfaces:
Iterable<ASN1Encodable>,ASN1Encodable,Encodable,Iterable<ASN1Encodable>
Indefinite length
SET and SET OF constructs.
Note: This does not know which syntax the set is!
Length field has value 0x80, and the set ends with two bytes of: 0x00, 0x00.
For X.690 syntax rules, see ASN1Set.
In brief: Constructing this form does not sort the supplied elements,
nor does the sorting happen before serialization. This is different
from the way DERSet does things.
-
Field Summary
Fields inherited from class org.bouncycastle.asn1.ASN1Set
sortedElements -
Constructor Summary
ConstructorsConstructorDescriptionBERSet()Create an empty SET.BERSet(ASN1Encodable obj) Create a SET containing one object.BERSet(ASN1Encodable[] a) Create a SET from an array of objects.Create a SET containing multiple objects. -
Method Summary
Methods inherited from class org.bouncycastle.asn1.ASN1Set
getInstance, getInstance, getObjectAt, getObjects, hashCode, iterator, parser, size, sort, toArray, toStringMethods inherited from class org.bouncycastle.asn1.ASN1Primitive
equals, fromByteArray, toASN1PrimitiveMethods inherited from class org.bouncycastle.asn1.ASN1Object
getEncoded, getEncoded, hasEncodedTagValueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
BERSet
public BERSet()Create an empty SET. -
BERSet
Create a SET containing one object.- Parameters:
obj- - a single object that makes up the set.
-
BERSet
Create a SET containing multiple objects.- Parameters:
v- a vector of objects making up the set.
-
BERSet
Create a SET from an array of objects.- Parameters:
a- an array of ASN.1 objects.
-