Package com.itextpdf.bouncycastle.asn1
Class ASN1EncodingBC
java.lang.Object
com.itextpdf.bouncycastle.asn1.ASN1EncodingBC
- All Implemented Interfaces:
-
IASN1Encoding
Wrapper class for
ASN1Encoding
.
-
Constructor Summary
ConstructorDescriptionASN1EncodingBC
(org.bouncycastle.asn1.ASN1Encoding asn1Encoding) Creates new wrapper instance forASN1Encoding
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.org.bouncycastle.asn1.ASN1Encoding
Gets actual org.bouncycastle object being wrapped.getBer()
GetsBER
constant for the wrapped ASN1Encoding.getDer()
GetsDER
constant for the wrapped ASN1Encoding.static ASN1EncodingBC
Gets wrapper instance.int
hashCode()
Returns a hash code value based on the wrapped object.toString()
DelegatestoString
method call to the wrapped object.
-
Constructor Details
-
ASN1EncodingBC
public ASN1EncodingBC(org.bouncycastle.asn1.ASN1Encoding asn1Encoding) Creates new wrapper instance forASN1Encoding
.- Parameters:
-
asn1Encoding
-ASN1Encoding
to be wrapped
-
-
Method Details
-
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
GetsDER
constant for the wrapped ASN1Encoding.- Specified by:
-
getDer
in interfaceIASN1Encoding
- Returns:
- ASN1Encoding.DER value.
-
getBer
GetsBER
constant for the wrapped ASN1Encoding.- Specified by:
-
getBer
in interfaceIASN1Encoding
- Returns:
- ASN1Encoding.BER value.
-
equals
Indicates whether some other object is "equal to" this one. Compares wrapped objects. -
hashCode
public int hashCode()Returns a hash code value based on the wrapped object. -
toString
DelegatestoString
method call to the wrapped object.
-