org.bouncycastle.cert
Class X509v1CertificateBuilder
java.lang.Object
org.bouncycastle.cert.X509v1CertificateBuilder
- Direct Known Subclasses:
- JcaX509v1CertificateBuilder
public class X509v1CertificateBuilder
- extends java.lang.Object
class to produce an X.509 Version 1 certificate.
Constructor Summary |
X509v1CertificateBuilder(org.bouncycastle.asn1.x500.X500Name issuer,
java.math.BigInteger serial,
java.util.Date notBefore,
java.util.Date notAfter,
org.bouncycastle.asn1.x500.X500Name subject,
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
Create a builder for a version 1 certificate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
X509v1CertificateBuilder
public X509v1CertificateBuilder(org.bouncycastle.asn1.x500.X500Name issuer,
java.math.BigInteger serial,
java.util.Date notBefore,
java.util.Date notAfter,
org.bouncycastle.asn1.x500.X500Name subject,
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
- Create a builder for a version 1 certificate.
- Parameters:
issuer
- the certificate issuerserial
- the certificate serial numbernotBefore
- the date before which the certificate is not validnotAfter
- the date after which the certificate is not validsubject
- the certificate subjectpublicKeyInfo
- the info structure for the public key to be associated with this certificate.
build
public X509CertificateHolder build(ContentSigner signer)
- Generate an X509 certificate, based on the current issuer and subject
using the passed in signer.
- Parameters:
signer
- the content signer to be used to generate the signature validating the certificate.
- Returns:
- a holder containing the resulting signed certificate.