Class ASN1SetBC

All Implemented Interfaces:
IASN1Encodable, IASN1Primitive, IASN1Set
Direct Known Subclasses:
DERSetBC

public class ASN1SetBC extends ASN1PrimitiveBC implements IASN1Set
Wrapper class for ASN1Set.
  • Constructor Details

    • ASN1SetBC

      public ASN1SetBC (org.bouncycastle.asn1.ASN1Set set)
      Creates new wrapper instance for ASN1Set.
      Parameters:
      set - ASN1Set to be wrapped
    • ASN1SetBC

      public ASN1SetBC (org.bouncycastle.asn1.ASN1TaggedObject taggedObject, boolean b)
      Creates new wrapper instance for ASN1Set.
      Parameters:
      taggedObject - ASN1TaggedObject to create ASN1Set to be wrapped
      b - boolean to create ASN1Set to be wrapped
  • Method Details

    • getASN1Set

      public org.bouncycastle.asn1.ASN1Set getASN1Set()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped ASN1Set.
    • getObjects

      public Enumeration getObjects()
      Calls actual getObjects method for the wrapped ASN1Set object.
      Specified by:
      getObjects in interface IASN1Set
      Returns:
      received objects.
    • size

      public int size()
      Calls actual size method for the wrapped ASN1Set object.
      Specified by:
      size in interface IASN1Set
      Returns:
      set size.
    • getObjectAt

      public IASN1Encodable getObjectAt (int index)
      Calls actual getObjectAt method for the wrapped ASN1Set object.
      Specified by:
      getObjectAt in interface IASN1Set
      Parameters:
      index - index
      Returns:
      IASN1Encodable wrapped ASN1Encodable object.
    • toArray

      public IASN1Encodable[] toArray()
      Calls actual toArray method for the wrapped ASN1Set object.
      Specified by:
      toArray in interface IASN1Set
      Returns:
      array of wrapped ASN1Encodable objects.