Package com.itextpdf.bouncycastle.cert
Class X509CertificateHolderBC
java.lang.Object
com.itextpdf.bouncycastle.cert.X509CertificateHolderBC
- All Implemented Interfaces:
-
IX509CertificateHolder
- Direct Known Subclasses:
-
JcaX509CertificateHolderBC
Wrapper class for
X509CertificateHolder.
-
Constructor Summary
ConstructorsConstructorDescriptionX509CertificateHolderBC(byte[] bytes) Creates new wrapper instance forX509CertificateHolder.X509CertificateHolderBC(org.bouncycastle.cert.X509CertificateHolder certificateHolder) Creates new wrapper instance forX509CertificateHolder. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.org.bouncycastle.cert.X509CertificateHolderGets actual org.bouncycastle object being wrapped.Retrieves signature algorithm identifier from the certificate.inthashCode()Returns a hash code value based on the wrapped object.toString()DelegatestoStringmethod call to the wrapped object.
-
Constructor Details
-
X509CertificateHolderBC
public X509CertificateHolderBC(org.bouncycastle.cert.X509CertificateHolder certificateHolder) Creates new wrapper instance forX509CertificateHolder.- Parameters:
-
certificateHolder-X509CertificateHolderto be wrapped
-
X509CertificateHolderBC
Creates new wrapper instance forX509CertificateHolder.- Parameters:
-
bytes- bytes array to createX509CertificateHolderto be wrapped - Throws:
-
IOException-X509CertificateHolderobject cannot be created from byte array.
-
-
Method Details
-
getCertificateHolder
public org.bouncycastle.cert.X509CertificateHolder getCertificateHolder()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
X509CertificateHolder.
-
getSignatureAlgorithm
Retrieves signature algorithm identifier from the certificate.- Specified by:
-
getSignatureAlgorithmin interfaceIX509CertificateHolder - Returns:
- signature algorithm.
-
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
DelegatestoStringmethod call to the wrapped object.
-