Package io.anyline.nfc.bouncycastle.asn1
Class DLSet
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.asn1.ASN1Encodable
,io.anyline.nfc.bouncycastle.util.Encodable
,io.anyline.nfc.bouncycastle.util.Iterable
,java.lang.Iterable
public class DLSet extends ASN1Set
The DLSet encodes ASN.1 SET value without element ordering, and always using definite length form.
8.11 Encoding of a set value8.11.1 The encoding of a set value shall be constructed8.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 9.3 Set components The encodings of the component values of a set value shall appear in an order determined by their tags as specified in 8.6 of ITU-T Rec. X.680 | ISO/IEC 8824-1. Additionally, for the purposes of determining the order in which components are encoded when one or more component is an untagged choice type, each untagged choice type is ordered as though it has a tag equal to that of the smallest tag in that choice type or any untagged choice types nested within. 10.3 Set components The encodings of the component values of a set value shall appear in an order determined by their tags as specified in 8.6 of ITU-T Rec. X.680 | ISO/IEC 8824-1. 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. 11.5 Set and sequence components with default value The encoding of a set value or sequence value shall not include an encoding for any component value which is equal to its default value.
-
-
Constructor Summary
Constructors Constructor Description DLSet()
create an empty set DLSet(ASN1Encodable element)
DLSet(ASN1EncodableVector elementVector)
DLSet(Array<ASN1Encodable> elements)
create a set from an array of objects.
-
Method Summary
Modifier and Type Method Description -
Methods inherited from class io.anyline.nfc.bouncycastle.asn1.ASN1Set
getInstance, getInstance, getObjectAt, getObjects, hashCode, iterator, parser, size, toArray, toString
-
Methods inherited from class io.anyline.nfc.bouncycastle.asn1.ASN1Primitive
encodeTo, encodeTo, equals, equals, equals, fromByteArray, toASN1Primitive
-
Methods inherited from class io.anyline.nfc.bouncycastle.util.Iterable
iterator
-
Methods inherited from class io.anyline.nfc.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded
-
Methods inherited from class java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
DLSet
DLSet()
create an empty set
-
DLSet
DLSet(ASN1Encodable element)
- Parameters:
element
- - a single object that makes up the set.
-
DLSet
DLSet(ASN1EncodableVector elementVector)
- Parameters:
elementVector
- - a vector of objects making up the set.
-
DLSet
DLSet(Array<ASN1Encodable> elements)
create a set from an array of objects.
-
-
-
-