Class ASN1DumpBC

java.lang.Object
com.itextpdf.bouncycastle.asn1.util.ASN1DumpBC
All Implemented Interfaces:
IASN1Dump

public class ASN1DumpBC extends Object implements IASN1Dump
Wrapper class for ASN1Dump.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ASN1DumpBC(org.bouncycastle.asn1.util.ASN1Dump asn1Dump)
    Creates new wrapper instance for ASN1Dump.
  • Method Summary

    Modifier and Type
    Method
    Description
    Calls actual dumpAsString method for the wrapped ASN1Dump object.
    dumpAsString(Object obj, boolean b)
    Calls actual dumpAsString method for the wrapped ASN1Dump object.
    boolean
    Indicates whether some other object is "equal to" this one.
    org.bouncycastle.asn1.util.ASN1Dump
    Gets actual org.bouncycastle object being wrapped.
    static ASN1DumpBC
    Gets wrapper instance.
    int
    Returns a hash code value based on the wrapped 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

    • ASN1DumpBC

      public ASN1DumpBC (org.bouncycastle.asn1.util.ASN1Dump asn1Dump)
      Creates new wrapper instance for ASN1Dump.
      Parameters:
      asn1Dump - ASN1Dump to be wrapped
  • Method Details

    • getInstance

      public static ASN1DumpBC getInstance()
      Gets wrapper instance.
      Returns:
      ASN1DumpBC instance.
    • getAsn1Dump

      public org.bouncycastle.asn1.util.ASN1Dump getAsn1Dump()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped ASN1Dump.
    • dumpAsString

      public String dumpAsString (Object obj, boolean b)
      Calls actual dumpAsString method for the wrapped ASN1Dump object.
      Specified by:
      dumpAsString in interface IASN1Dump
      Parameters:
      obj - the ASN1Primitive (or its wrapper) to be dumped out
      b - if true, dump out the contents of octet and bit strings
      Returns:
      the resulting string.
    • dumpAsString

      public String dumpAsString (Object obj)
      Calls actual dumpAsString method for the wrapped ASN1Dump object.
      Specified by:
      dumpAsString in interface IASN1Dump
      Parameters:
      obj - the ASN1Primitive (or its wrapper) to be dumped out
      Returns:
      the resulting string.
    • 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