Class ASN1StringBC

  • All Implemented Interfaces:
    IASN1String

    public class ASN1StringBC
    extends java.lang.Object
    implements IASN1String
    Wrapper class for ASN1String.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.bouncycastle.asn1.ASN1String asn1String  
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Indicates whether some other object is "equal to" this one.
      org.bouncycastle.asn1.ASN1String getASN1String()
      Gets actual org.bouncycastle object being wrapped.
      java.lang.String getString()
      Calls actual getString method for the wrapped ASN1String object.
      int hashCode()
      Returns a hash code value based on the wrapped object.
      java.lang.String toString()
      Delegates toString method call to the wrapped object.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • asn1String

        private final org.bouncycastle.asn1.ASN1String asn1String
    • Constructor Detail

      • ASN1StringBC

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

      • getASN1String

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

        public java.lang.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​(java.lang.Object o)
        Indicates whether some other object is "equal to" this one. Compares wrapped objects.
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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