Class ASN1EncodableVectorBC

java.lang.Object
com.itextpdf.bouncycastle.asn1.ASN1EncodableVectorBC
All Implemented Interfaces:
IASN1EncodableVector

public class ASN1EncodableVectorBC extends Object implements IASN1EncodableVector
Wrapper class for ASN1EncodableVector.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates new wrapper instance for new ASN1EncodableVector object.
    ASN1EncodableVectorBC(org.bouncycastle.asn1.ASN1EncodableVector encodableVector)
    Creates new wrapper instance for ASN1EncodableVector.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(IAttribute attribute)
    Calls actual add method for the wrapped ASN1EncodableVector object.
    void
    add(IASN1Primitive primitive)
    Calls actual add method for the wrapped ASN1EncodableVector object.
    void
    Calls actual add method for the wrapped ASN1EncodableVector object.
    void
    addOptional(IAttribute attribute)
    Calls actual add method for the wrapped ASN1EncodableVector object if the attribute is not null.
    void
    Calls actual add method for the wrapped ASN1EncodableVector object if the primitive is not null.
    void
    Calls actual add method for the wrapped ASN1EncodableVector object if the element is not null.
    boolean
    Indicates whether some other object is "equal to" this one.
    org.bouncycastle.asn1.ASN1EncodableVector
    Gets actual org.bouncycastle object being wrapped.
    int
    Returns a hash code value based on the wrapped object.
    int
    size()
    Calls actual size method for the wrapped ASN1EncodableVector object.
    Delegates toString method call to the wrapped object.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ASN1EncodableVectorBC

      public ASN1EncodableVectorBC()
      Creates new wrapper instance for new ASN1EncodableVector object.
    • ASN1EncodableVectorBC

      public ASN1EncodableVectorBC (org.bouncycastle.asn1.ASN1EncodableVector encodableVector)
      Creates new wrapper instance for ASN1EncodableVector.
      Parameters:
      encodableVector - ASN1EncodableVector to be wrapped
  • Method Details

    • getEncodableVector

      public org.bouncycastle.asn1.ASN1EncodableVector getEncodableVector()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped ASN1EncodableVector.
    • add

      public void add (IASN1Primitive primitive)
      Calls actual add method for the wrapped ASN1EncodableVector object.
      Specified by:
      add in interface IASN1EncodableVector
      Parameters:
      primitive - ASN1Primitive wrapper.
    • add

      public void add (IAttribute attribute)
      Calls actual add method for the wrapped ASN1EncodableVector object.
      Specified by:
      add in interface IASN1EncodableVector
      Parameters:
      attribute - Attribute wrapper.
    • add

      public void add (IAlgorithmIdentifier element)
      Calls actual add method for the wrapped ASN1EncodableVector object.
      Specified by:
      add in interface IASN1EncodableVector
      Parameters:
      element - AlgorithmIdentifier wrapper.
    • addOptional

      public void addOptional (IASN1Primitive primitive)
      Calls actual add method for the wrapped ASN1EncodableVector object if the primitive is not null.
      Specified by:
      addOptional in interface IASN1EncodableVector
      Parameters:
      primitive - ASN1Primitive wrapper.
    • addOptional

      public void addOptional (IAttribute attribute)
      Calls actual add method for the wrapped ASN1EncodableVector object if the attribute is not null.
      Specified by:
      addOptional in interface IASN1EncodableVector
      Parameters:
      attribute - Attribute wrapper.
    • addOptional

      public void addOptional (IAlgorithmIdentifier element)
      Calls actual add method for the wrapped ASN1EncodableVector object if the element is not null.
      Specified by:
      addOptional in interface IASN1EncodableVector
      Parameters:
      element - AlgorithmIdentifier wrapper.
    • size

      public int size()
      Calls actual size method for the wrapped ASN1EncodableVector object.
      Specified by:
      size in interface IASN1EncodableVector
      Returns:
      int representing current vector size
    • equals

      public boolean equals (Object o)
      Indicates whether some other object is "equal to" this one. Compares wrapped objects.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Returns a hash code value based on the wrapped object.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Delegates toString method call to the wrapped object.
      Overrides:
      toString in class Object