Package com.itextpdf.bouncycastle.asn1
Class ASN1EncodableBC
java.lang.Object
com.itextpdf.bouncycastle.asn1.ASN1EncodableBC
- All Implemented Interfaces:
-
IASN1Encodable
- Direct Known Subclasses:
-
AlgorithmIdentifierBC
,ASN1PrimitiveBC
,AttributeBC
,AuthorityKeyIdentifierBC
,BasicConstraintsBC
,BasicOCSPResponseBC
,ContentInfoBC
,CRLDistPointBC
,CRLReasonBC
,DistributionPointBC
,DistributionPointNameBC
,EncryptedContentInfoBC
,EnvelopedDataBC
,ESSCertIDBC
,ESSCertIDv2BC
,ExtendedKeyUsageBC
,ExtensionBC
,ExtensionsBC
,GeneralNameBC
,GeneralNamesBC
,IssuerAndSerialNumberBC
,IssuingDistributionPointBC
,KeyPurposeIdBC
,KeyTransRecipientInfoBC
,KeyUsageBC
,MessageImprintBC
,OCSPResponseBC
,OCSPResponseStatusBC
,OriginatorInfoBC
,OtherHashAlgAndValueBC
,PrivateKeyInfoBC
,RecipientIdentifierBC
,RecipientInfoBC
,ResponseBytesBC
,RSASSAPSSParamsBC
,SignaturePolicyIdBC
,SignaturePolicyIdentifierBC
,SigningCertificateBC
,SigningCertificateV2BC
,SigPolicyQualifierInfoBC
,SubjectKeyIdentifierBC
,SubjectPublicKeyInfoBC
,TBSCertificateBC
,TimeBC
,TSTInfoBC
,X500NameBC
Wrapper class for
ASN1Encodable
.
-
Constructor Summary
ConstructorDescriptionASN1EncodableBC
(org.bouncycastle.asn1.ASN1Encodable encodable) Creates new wrapper instance forASN1Encodable
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.org.bouncycastle.asn1.ASN1Encodable
Gets actual org.bouncycastle object being wrapped.int
hashCode()
Returns a hash code value based on the wrapped object.boolean
isNull()
Checks if wrapped object is null.Calls actualtoASN1Primitive
method for the wrapped ASN1Encodable object.toString()
DelegatestoString
method call to the wrapped object.
-
Constructor Details
-
ASN1EncodableBC
public ASN1EncodableBC(org.bouncycastle.asn1.ASN1Encodable encodable) Creates new wrapper instance forASN1Encodable
.- Parameters:
-
encodable
-ASN1Encodable
to be wrapped
-
-
Method Details
-
getEncodable
public org.bouncycastle.asn1.ASN1Encodable getEncodable()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
ASN1Encodable
.
-
toASN1Primitive
Calls actualtoASN1Primitive
method for the wrapped ASN1Encodable object.- Specified by:
-
toASN1Primitive
in interfaceIASN1Encodable
- Returns:
-
IASN1Primitive
wrapped ASN1Primitive object.
-
isNull
public boolean isNull()Checks if wrapped object is null.- Specified by:
-
isNull
in interfaceIASN1Encodable
- Returns:
-
true if
null
is wrapped, false otherwise.
-
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.
-