Class DERSet

All Implemented Interfaces:
Iterable<ASN1Encodable>, ASN1Encodable, Encodable, Iterable<ASN1Encodable>

public class DERSet extends ASN1Set
A DER encoded SET object

For X.690 syntax rules, see ASN1Set.

For short: Constructing this form does sort the supplied elements, and the sorting happens also before serialization (if necesssary). This is different from the way BERSet,DLSet does things.

  • Constructor Details

    • DERSet

      public DERSet()
      create an empty set
    • DERSet

      public DERSet(ASN1Encodable element)
      create a set containing one object
      Parameters:
      element - the object to go in the set
    • DERSet

      public DERSet(ASN1EncodableVector elementVector)
      create a set containing a vector of objects.
      Parameters:
      elementVector - the vector of objects to make up the set.
    • DERSet

      public DERSet(ASN1Encodable[] elements)
      create a set containing an array of objects.
      Parameters:
      elements - the array of objects to make up the set.
  • Method Details