Class ASN1StringBC

java.lang.Object
com.itextpdf.bouncycastle.asn1.ASN1StringBC
All Implemented Interfaces:
IASN1String

public class ASN1StringBC extends Object implements IASN1String
Wrapper class for ASN1String.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ASN1StringBC(org.bouncycastle.asn1.ASN1String asn1String)
    Creates new wrapper instance for ASN1String.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether some other object is "equal to" this one.
    org.bouncycastle.asn1.ASN1String
    Gets actual org.bouncycastle object being wrapped.
    Calls actual getString method for the wrapped ASN1String object.
    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

    • ASN1StringBC

      public ASN1StringBC (org.bouncycastle.asn1.ASN1String asn1String)
      Creates new wrapper instance for ASN1String.
      Parameters:
      asn1String - ASN1String to be wrapped
  • Method Details

    • getASN1String

      public org.bouncycastle.asn1.ASN1String getASN1String()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped ASN1String.
    • getString

      public String getString()
      Calls actual getString method for the wrapped ASN1String object.
      Specified by:
      getString in interface IASN1String
      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