Package com.itextpdf.bouncycastle.asn1
Class ASN1StringBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.asn1.ASN1StringBC
-
- All Implemented Interfaces:
IASN1String
public class ASN1StringBC extends java.lang.Object implements IASN1String
Wrapper class forASN1String.
-
-
Field Summary
Fields Modifier and Type Field Description private org.bouncycastle.asn1.ASN1Stringasn1String
-
Constructor Summary
Constructors Constructor Description ASN1StringBC(org.bouncycastle.asn1.ASN1String asn1String)Creates new wrapper instance forASN1String.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Indicates whether some other object is "equal to" this one.org.bouncycastle.asn1.ASN1StringgetASN1String()Gets actual org.bouncycastle object being wrapped.java.lang.StringgetString()Calls actualgetStringmethod for the wrapped ASN1String object.inthashCode()Returns a hash code value based on the wrapped object.java.lang.StringtoString()DelegatestoStringmethod call to the wrapped object.
-
-
-
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 actualgetStringmethod for the wrapped ASN1String object.- Specified by:
getStringin interfaceIASN1String- 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Returns a hash code value based on the wrapped object.- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
DelegatestoStringmethod call to the wrapped object.- Overrides:
toStringin classjava.lang.Object
-
-