Top Description Constructors Methods
org.bouncycastle.cert.bc

public Class BcX509v3CertificateBuilder

extends X509v3CertificateBuilder
Class Inheritance
Imports
java.io.IOException, java.math.BigInteger, java.util.Date, org.bouncycastle.asn1.x500.X500Name, org.bouncycastle.cert.X509CertificateHolder, .X509v3CertificateBuilder, org.bouncycastle.crypto.params.AsymmetricKeyParameter, org.bouncycastle.crypto.util.SubjectPublicKeyInfoFactory

JCA helper class to allow BC lightweight objects to be used in the construction of a Version 3 certificate.

Constructor Summary

AccessConstructor and Description
public
BcX509v3CertificateBuilder(X500Name
X500Name representing the issuer of this certificate.
issuer
,
BigInteger
the serial number for the certificate.
serial
,
Date
date before which the certificate is not valid.
notBefore
,
Date
date after which the certificate is not valid.
notAfter
,
X500Name
X500Name representing the subject of this certificate.
subject
,
AsymmetricKeyParameter
the public key to be associated with the certificate.
publicKey
)

Initialise the builder using a PublicKey.

public
BcX509v3CertificateBuilder(X509CertificateHolder
holder for certificate who's subject is the issuer of the certificate we are building.
issuerCert
,
BigInteger
the serial number for the certificate.
serial
,
Date
date before which the certificate is not valid.
notBefore
,
Date
date after which the certificate is not valid.
notAfter
,
X500Name
principal representing the subject of this certificate.
subject
,
AsymmetricKeyParameter
the public key to be associated with the certificate.
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.

Method Summary

Inherited from org.bouncycastle.cert.X509v3CertificateBuilder:
addExtensionaddExtensionaddExtensionbuildbuildcopyAndAddExtensiongetExtensionhasExtensionremoveExtensionreplaceExtensionreplaceExtensionreplaceExtensionsetIssuerUniqueIDsetSubjectUniqueID

Constructor Detail

BcX509v3CertificateBuilderback to summary
public BcX509v3CertificateBuilder(X500Name issuer, BigInteger serial, Date notBefore, Date notAfter, X500Name subject, AsymmetricKeyParameter publicKey) throws IOException

Initialise the builder using a PublicKey.

Parameters
issuer:X500Name

X500Name representing the issuer of this certificate.

serial:BigInteger

the serial number for the certificate.

notBefore:Date

date before which the certificate is not valid.

notAfter:Date

date after which the certificate is not valid.

subject:X500Name

X500Name representing the subject of this certificate.

publicKey:AsymmetricKeyParameter

the public key to be associated with the certificate.

BcX509v3CertificateBuilderback to summary
public BcX509v3CertificateBuilder(X509CertificateHolder issuerCert, BigInteger serial, Date notBefore, Date notAfter, X500Name subject, AsymmetricKeyParameter publicKey) throws IOException

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.

Parameters
issuerCert:X509CertificateHolder

holder for certificate who's subject is the issuer of the certificate we are building.

serial:BigInteger

the serial number for the certificate.

notBefore:Date

date before which the certificate is not valid.

notAfter:Date

date after which the certificate is not valid.

subject:X500Name

principal representing the subject of this certificate.

publicKey:AsymmetricKeyParameter

the public key to be associated with the certificate.