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
public class ASN1EncodableBC extends java.lang.Object implements IASN1Encodable
Wrapper class forASN1Encodable.
-
-
Field Summary
Fields Modifier and Type Field Description private org.bouncycastle.asn1.ASN1Encodableencodable
-
Constructor Summary
Constructors Constructor Description ASN1EncodableBC(org.bouncycastle.asn1.ASN1Encodable encodable)Creates new wrapper instance forASN1Encodable.
-
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.ASN1EncodablegetEncodable()Gets actual org.bouncycastle object being wrapped.inthashCode()Returns a hash code value based on the wrapped object.booleanisNull()Checks if wrapped object is null.IASN1PrimitivetoASN1Primitive()Calls actualtoASN1Primitivemethod for the wrapped ASN1Encodable object.java.lang.StringtoString()DelegatestoStringmethod call to the wrapped object.
-
-
-
Method Detail
-
getEncodable
public org.bouncycastle.asn1.ASN1Encodable getEncodable()
Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
ASN1Encodable.
-
toASN1Primitive
public IASN1Primitive toASN1Primitive()
Calls actualtoASN1Primitivemethod for the wrapped ASN1Encodable object.- Specified by:
toASN1Primitivein interfaceIASN1Encodable- Returns:
IASN1Primitivewrapped ASN1Primitive object.
-
isNull
public boolean isNull()
Checks if wrapped object is null.- Specified by:
isNullin interfaceIASN1Encodable- Returns:
- true if
nullis wrapped, false otherwise.
-
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
-
-