Class X509v1CertificateBuilder

    • Constructor Summary

      Constructors 
      Constructor Description
      X509v1CertificateBuilder​(org.bouncycastle.asn1.x500.X500Name issuer, BigInteger serial, Date notBefore, Date notAfter, Locale dateLocale, org.bouncycastle.asn1.x500.X500Name subject, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
      Create a builder for a version 1 certificate.
      X509v1CertificateBuilder​(org.bouncycastle.asn1.x500.X500Name issuer, BigInteger serial, Date notBefore, Date notAfter, org.bouncycastle.asn1.x500.X500Name subject, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
      Create a builder for a version 1 certificate.
      X509v1CertificateBuilder​(org.bouncycastle.asn1.x500.X500Name issuer, BigInteger serial, org.bouncycastle.asn1.x509.Time notBefore, org.bouncycastle.asn1.x509.Time notAfter, org.bouncycastle.asn1.x500.X500Name subject, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
      Create a builder for a version 1 certificate.
    • Constructor Detail

      • X509v1CertificateBuilder

        public X509v1CertificateBuilder​(org.bouncycastle.asn1.x500.X500Name issuer,
                                        BigInteger serial,
                                        Date notBefore,
                                        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 issuer
        serial - the certificate serial number
        notBefore - the date before which the certificate is not valid
        notAfter - the date after which the certificate is not valid
        subject - the certificate subject
        publicKeyInfo - the info structure for the public key to be associated with this certificate.
      • X509v1CertificateBuilder

        public X509v1CertificateBuilder​(org.bouncycastle.asn1.x500.X500Name issuer,
                                        BigInteger serial,
                                        Date notBefore,
                                        Date notAfter,
                                        Locale dateLocale,
                                        org.bouncycastle.asn1.x500.X500Name subject,
                                        org.bouncycastle.asn1.x509.SubjectPublicKeyInfo publicKeyInfo)
        Create a builder for a version 1 certificate. You may need to use this constructor if the default locale doesn't use a Gregorian calender so that the Time produced is compatible with other ASN.1 implementations.
        Parameters:
        issuer - the certificate issuer
        serial - the certificate serial number
        notBefore - the date before which the certificate is not valid
        notAfter - the date after which the certificate is not valid
        dateLocale - locale to be used for date interpretation.
        subject - the certificate subject
        publicKeyInfo - the info structure for the public key to be associated with this certificate.
      • X509v1CertificateBuilder

        public X509v1CertificateBuilder​(org.bouncycastle.asn1.x500.X500Name issuer,
                                        BigInteger serial,
                                        org.bouncycastle.asn1.x509.Time notBefore,
                                        org.bouncycastle.asn1.x509.Time 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 issuer
        serial - the certificate serial number
        notBefore - the Time before which the certificate is not valid
        notAfter - the Time after which the certificate is not valid
        subject - the certificate subject
        publicKeyInfo - the info structure for the public key to be associated with this certificate.
    • Method Detail

      • 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.