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.
| Access | Constructor and Description |
|---|---|
| public | |
| public | BERSet(ASN1Encodable
- a single object that makes up the set. element)Create a SET containing one object. |
| public | BERSet(ASN1EncodableVector
a vector of objects making up the set. elementVector)Create a SET containing multiple objects. |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | encode(ASN1OutputStream out, boolean withTag)
Implements abstract org. |
| pack-priv int | encodedLength(boolean withTag)
Implements abstract org. |
| BERSet | back to summary |
|---|---|
| public BERSet() Create an empty SET. | |
| BERSet | back to summary |
|---|---|
| public BERSet(ASN1Encodable element) Create a SET containing one object.
| |
| BERSet | back to summary |
|---|---|
| public BERSet(ASN1EncodableVector elementVector) Create a SET containing multiple objects.
| |
| BERSet | back to summary |
|---|---|
| public BERSet(ASN1Encodable[] elements) Create a SET from an array of objects.
| |
| BERSet | back to summary |
|---|---|
| pack-priv BERSet(boolean isSorted, ASN1Encodable[] elements) | |
| encode | back to summary |
|---|---|
| pack-priv void encode(ASN1OutputStream out, boolean withTag) throws IOException Implements abstract org. | |
| encodedLength | back to summary |
|---|---|
| pack-priv int encodedLength(boolean withTag) throws IOException Implements abstract org. | |