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.X509CertificateHolder
certificateHolder
-
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 boolean
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.org.bouncycastle.cert.X509CertificateHolder
getCertificateHolder()
Gets actual org.bouncycastle object being wrapped.IAlgorithmIdentifier
getSignatureAlgorithm()
Retrieves signature algorithm identifier from the certificate.int
hashCode()
Returns a hash code value based on the wrapped object.java.lang.String
toString()
DelegatestoString
method call to the wrapped object.
-
-
-
Constructor Detail
-
X509CertificateHolderBC
public X509CertificateHolderBC(org.bouncycastle.cert.X509CertificateHolder certificateHolder)
Creates new wrapper instance forX509CertificateHolder
.- Parameters:
certificateHolder
-X509CertificateHolder
to be wrapped
-
X509CertificateHolderBC
public X509CertificateHolderBC(byte[] bytes) throws java.io.IOException
Creates new wrapper instance forX509CertificateHolder
.- Parameters:
bytes
- bytes array to createX509CertificateHolder
to be wrapped- Throws:
java.io.IOException
-X509CertificateHolder
object 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:
getSignatureAlgorithm
in 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Returns a hash code value based on the wrapped object.- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
DelegatestoString
method call to the wrapped object.- Overrides:
toString
in classjava.lang.Object
-
-