Class BERSet

  • 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 BERSet
    extends ASN1Set
                        

    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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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

      • BERSet

        BERSet()
        Create an empty SET.
      • BERSet

        BERSet(ASN1Encodable element)
        Create a SET containing one object.
        Parameters:
        element - - a single object that makes up the set.
      • BERSet

        BERSet(ASN1EncodableVector elementVector)
        Create a SET containing multiple objects.
        Parameters:
        elementVector - a vector of objects making up the set.
      • BERSet

        BERSet(Array<ASN1Encodable> elements)
        Create a SET from an array of objects.
        Parameters:
        elements - an array of ASN.1 objects.
    • Method Detail