Class JcaX509v3CertificateBuilderBCFips
java.lang.Object
com.itextpdf.bouncycastlefips.cert.jcajce.JcaX509v3CertificateBuilderBCFips
- All Implemented Interfaces:
-
IJcaX509v3CertificateBuilder
public class JcaX509v3CertificateBuilderBCFips extends Object implements IJcaX509v3CertificateBuilder
Wrapper class for
JcaX509v3CertificateBuilder
.
-
Constructor Summary
ConstructorDescriptionJcaX509v3CertificateBuilderBCFips
(X509Certificate signingCert, BigInteger certSerialNumber, Date startDate, Date endDate, IX500Name subjectDnName, PublicKey publicKey) Creates new wrapper instance forJcaX509v3CertificateBuilder
.JcaX509v3CertificateBuilderBCFips
(org.bouncycastle.cert.jcajce.JcaX509v3CertificateBuilder certificateBuilder) Creates new wrapper instance forJcaX509v3CertificateBuilder
. -
Method Summary
Modifier and TypeMethodDescriptionaddExtension
(IASN1ObjectIdentifier extensionOID, boolean critical, IASN1Encodable extensionValue) Calls actualaddExtension
method for the wrapped JcaX509v3CertificateBuilder object.build
(IContentSigner contentSigner) Calls actualbuild
method for the wrapped JcaX509v3CertificateBuilder object.boolean
Indicates whether some other object is "equal to" this one.org.bouncycastle.cert.jcajce.JcaX509v3CertificateBuilder
Gets actual org.bouncycastle object being wrapped.int
hashCode()
Returns a hash code value based on the wrapped object.toString()
DelegatestoString
method call to the wrapped object.
-
Constructor Details
-
JcaX509v3CertificateBuilderBCFips
public JcaX509v3CertificateBuilderBCFips(org.bouncycastle.cert.jcajce.JcaX509v3CertificateBuilder certificateBuilder) Creates new wrapper instance forJcaX509v3CertificateBuilder
.- Parameters:
-
certificateBuilder
-JcaX509v3CertificateBuilder
to be wrapped
-
JcaX509v3CertificateBuilderBCFips
public JcaX509v3CertificateBuilderBCFips(X509Certificate signingCert, BigInteger certSerialNumber, Date startDate, Date endDate, IX500Name subjectDnName, PublicKey publicKey) Creates new wrapper instance forJcaX509v3CertificateBuilder
.- Parameters:
-
signingCert
- X509Certificate to createJcaX509v3CertificateBuilder
-
certSerialNumber
- BigInteger to createJcaX509v3CertificateBuilder
-
startDate
- start date to createJcaX509v3CertificateBuilder
-
endDate
- end date to createJcaX509v3CertificateBuilder
-
subjectDnName
- X500Name wrapper to createJcaX509v3CertificateBuilder
-
publicKey
- PublicKey to createJcaX509v3CertificateBuilder
-
-
Method Details
-
getCertificateBuilder
public org.bouncycastle.cert.jcajce.JcaX509v3CertificateBuilder getCertificateBuilder()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
JcaX509v3CertificateBuilder
.
-
build
Calls actualbuild
method for the wrapped JcaX509v3CertificateBuilder object.- Specified by:
-
build
in interfaceIJcaX509v3CertificateBuilder
- Parameters:
-
contentSigner
- ContentSigner wrapper - Returns:
- {IX509CertificateHolder} wrapper for built X509CertificateHolder object.
-
addExtension
public IJcaX509v3CertificateBuilder addExtension(IASN1ObjectIdentifier extensionOID, boolean critical, IASN1Encodable extensionValue) throws CertIOExceptionBCFips Calls actualaddExtension
method for the wrapped JcaX509v3CertificateBuilder object.- Specified by:
-
addExtension
in interfaceIJcaX509v3CertificateBuilder
- Parameters:
-
extensionOID
- wrapper for the OID defining the extension type -
critical
- true if the extension is critical, false otherwise -
extensionValue
- wrapped ASN.1 structure that forms the extension's value - Returns:
-
IJcaX509v3CertificateBuilder
this wrapper object. - Throws:
-
CertIOExceptionBCFips
-
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.
-