Class ASN1EncodingBC

java.lang.Object
com.itextpdf.bouncycastle.asn1.ASN1EncodingBC
All Implemented Interfaces:
IASN1Encoding

public class ASN1EncodingBC extends Object implements IASN1Encoding
Wrapper class for ASN1Encoding.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ASN1EncodingBC(org.bouncycastle.asn1.ASN1Encoding asn1Encoding)
    Creates new wrapper instance for ASN1Encoding.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether some other object is "equal to" this one.
    org.bouncycastle.asn1.ASN1Encoding
    Gets actual org.bouncycastle object being wrapped.
    getBer()
    Gets BER constant for the wrapped ASN1Encoding.
    getDer()
    Gets DER constant for the wrapped ASN1Encoding.
    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

    • ASN1EncodingBC

      public ASN1EncodingBC (org.bouncycastle.asn1.ASN1Encoding asn1Encoding)
      Creates new wrapper instance for ASN1Encoding.
      Parameters:
      asn1Encoding - ASN1Encoding to be wrapped
  • Method Details

    • getInstance

      public static ASN1EncodingBC getInstance()
      Gets wrapper instance.
      Returns:
      ASN1EncodingBC instance.
    • getASN1Encoding

      public org.bouncycastle.asn1.ASN1Encoding getASN1Encoding()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped ASN1Encoding.
    • getDer

      public String getDer()
      Gets DER constant for the wrapped ASN1Encoding.
      Specified by:
      getDer in interface IASN1Encoding
      Returns:
      ASN1Encoding.DER value.
    • getBer

      public String getBer()
      Gets BER constant for the wrapped ASN1Encoding.
      Specified by:
      getBer in interface IASN1Encoding
      Returns:
      ASN1Encoding.BER value.
    • 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