Package com.itextpdf.bouncycastle.cert
Class X509CertificateHolderBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.cert.X509CertificateHolderBC
-
- All Implemented Interfaces:
IX509CertificateHolder
- Direct Known Subclasses:
JcaX509CertificateHolderBC
public class X509CertificateHolderBC extends java.lang.Object implements IX509CertificateHolder
Wrapper class forX509CertificateHolder.
-
-
Field Summary
Fields Modifier and Type Field Description private org.bouncycastle.cert.X509CertificateHoldercertificateHolder
-
Constructor Summary
Constructors Constructor Description X509CertificateHolderBC(byte[] bytes)Creates new wrapper instance forX509CertificateHolder.X509CertificateHolderBC(org.bouncycastle.cert.X509CertificateHolder certificateHolder)Creates new wrapper instance forX509CertificateHolder.
-
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.cert.X509CertificateHoldergetCertificateHolder()Gets actual org.bouncycastle object being wrapped.IAlgorithmIdentifiergetSignatureAlgorithm()Retrieves signature algorithm identifier from the certificate.inthashCode()Returns a hash code value based on the wrapped object.java.lang.StringtoString()DelegatestoStringmethod call to the wrapped object.
-
-
-
Constructor Detail
-
X509CertificateHolderBC
public X509CertificateHolderBC(org.bouncycastle.cert.X509CertificateHolder certificateHolder)
Creates new wrapper instance forX509CertificateHolder.- Parameters:
certificateHolder-X509CertificateHolderto be wrapped
-
X509CertificateHolderBC
public X509CertificateHolderBC(byte[] bytes) throws java.io.IOExceptionCreates new wrapper instance forX509CertificateHolder.- Parameters:
bytes- bytes array to createX509CertificateHolderto be wrapped- Throws:
java.io.IOException-X509CertificateHolderobject cannot be created from byte array.
-
-
Method Detail
-
getCertificateHolder
public org.bouncycastle.cert.X509CertificateHolder getCertificateHolder()
Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
X509CertificateHolder.
-
getSignatureAlgorithm
public IAlgorithmIdentifier getSignatureAlgorithm()
Retrieves signature algorithm identifier from the certificate.- Specified by:
getSignatureAlgorithmin interfaceIX509CertificateHolder- Returns:
- signature algorithm.
-
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
-
-