8.11.2 The contents octets shall consist of the complete encoding of a data value from each of the types listed in the ASN.1 definition of the set type, in an order chosen by the sender, unless the type was referenced with the keyword OPTIONAL or the keyword DEFAULT.
8.11.3 The encoding of a data value may, but need not, be present for a type which was referenced with the keyword OPTIONAL or the keyword DEFAULT.
NOTE — The order of data values in a set value is not significant, and places no constraints on the order during transfer
NOTE — Where a component of the set is an untagged choice type, the location of that component in the ordering will depend on the tag of the choice component being encoded.
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | encode(ASN1OutputStream out, boolean withTag)
Implements abstract org. A note on the implementation: As DL requires the constructed, definite-length model to be used for structured types, this varies slightly from the ASN.1 descriptions given. |
| pack-priv int | encodedLength(boolean withTag)
Implements abstract org.
|
| private int | |
| pack-priv ASN1Primitive | toDLObject()
Overrides org. Change current SET object to be encoded as |
| contentsLength | back to summary |
|---|---|
| private int contentsLength | |
| DLSet | back to summary |
|---|---|
| public DLSet() create an empty set | |
| DLSet | back to summary |
|---|---|
public DLSet(ASN1Encodable element)
| |
| DLSet | back to summary |
|---|---|
public DLSet(ASN1EncodableVector elementVector)
| |
| DLSet | back to summary |
|---|---|
| public DLSet(ASN1Encodable[] elements) create a set from an array of objects. | |
| DLSet | back to summary |
|---|---|
| pack-priv DLSet(boolean isSorted, ASN1Encodable[] elements) | |
| DLSet | back to summary |
|---|---|
| pack-priv DLSet(ASN1Encodable[] elements, ASN1Encodable[] sortedElements) | |
| encode | back to summary |
|---|---|
| pack-priv void encode(ASN1OutputStream out, boolean withTag) throws IOException Implements abstract org. A note on the implementation: As DL requires the constructed, definite-length model to be used for structured types, this varies slightly from the ASN.1 descriptions given. Rather than just outputting SET, we also have to specify CONSTRUCTED, and the objects length. | |
| encodedLength | back to summary |
|---|---|
| pack-priv int encodedLength(boolean withTag) throws IOException Implements abstract org. | |
| getContentsLength | back to summary |
|---|---|
| private int getContentsLength() throws IOException | |
| toDLObject | back to summary |
|---|---|
| pack-priv ASN1Primitive toDLObject() Overrides org. Doc from org. Change current SET object to be encoded as
| |