java.lang.Iterable<ASN1Encodable>
, ASN1Encodable
, Encodable
, Iterable<ASN1Encodable>
public class BERSet extends ASN1Set
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.
Constructor | Description |
---|---|
BERSet() |
Create an empty SET.
|
BERSet(ASN1Encodable obj) |
Create a SET containing one object.
|
BERSet(ASN1Encodable[] a) |
Create a SET from an array of objects.
|
BERSet(ASN1EncodableVector v) |
Create a SET containing multiple objects.
|
getEncoded, getEncoded, hasEncodedTagValue, toASN1Object
equals, fromByteArray, toASN1Primitive
getInstance, getInstance, getObjectAt, getObjects, hashCode, iterator, parser, size, sort, toArray, toString
public BERSet()
public BERSet(ASN1Encodable obj)
obj
- - a single object that makes up the set.public BERSet(ASN1EncodableVector v)
v
- a vector of objects making up the set.public BERSet(ASN1Encodable[] a)
a
- an array of ASN.1 objects.