public class BcX509v3CertificateBuilder extends X509v3CertificateBuilder
Constructor and Description |
---|
BcX509v3CertificateBuilder(X500Name issuer,
BigInteger serial,
Date notBefore,
Date notAfter,
X500Name subject,
AsymmetricKeyParameter publicKey)
Initialise the builder using a PublicKey.
|
BcX509v3CertificateBuilder(X509CertificateHolder issuerCert,
BigInteger serial,
Date notBefore,
Date notAfter,
X500Name subject,
AsymmetricKeyParameter publicKey)
Initialise the builder using the subject from the passed in issuerCert as the issuer, as well as
passing through and converting the other objects provided.
|
addExtension, addExtension, addExtension, build, copyAndAddExtension, getExtension, hasExtension, removeExtension, replaceExtension, replaceExtension, replaceExtension, setIssuerUniqueID, setSubjectUniqueID
public BcX509v3CertificateBuilder(X500Name issuer, BigInteger serial, Date notBefore, Date notAfter, X500Name subject, AsymmetricKeyParameter publicKey) throws IOException
issuer
- X500Name representing the issuer of this certificate.serial
- the serial number for the certificate.notBefore
- date before which the certificate is not valid.notAfter
- date after which the certificate is not valid.subject
- X500Name representing the subject of this certificate.publicKey
- the public key to be associated with the certificate.IOException
public BcX509v3CertificateBuilder(X509CertificateHolder issuerCert, BigInteger serial, Date notBefore, Date notAfter, X500Name subject, AsymmetricKeyParameter publicKey) throws IOException
issuerCert
- holder for certificate who's subject is the issuer of the certificate we are building.serial
- the serial number for the certificate.notBefore
- date before which the certificate is not valid.notAfter
- date after which the certificate is not valid.subject
- principal representing the subject of this certificate.publicKey
- the public key to be associated with the certificate.IOException
Copyright © 2020 BouncyCastle.org. All rights reserved.