public class JcaX509v3CertificateBuilder extends X509v3CertificateBuilder
Constructor and Description |
---|
JcaX509v3CertificateBuilder(X500Name issuer,
BigInteger serial,
Date notBefore,
Date notAfter,
X500Name subject,
PublicKey publicKey)
Initialise the builder using a PublicKey.
|
JcaX509v3CertificateBuilder(X500Principal issuer,
BigInteger serial,
Date notBefore,
Date notAfter,
X500Principal subject,
PublicKey publicKey)
Initialise the builder using X500Principal objects and a PublicKey.
|
JcaX509v3CertificateBuilder(X509Certificate issuerCert,
BigInteger serial,
Date notBefore,
Date notAfter,
X500Principal subject,
PublicKey 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.
|
Modifier and Type | Method and Description |
---|---|
JcaX509v3CertificateBuilder |
copyAndAddExtension(ASN1ObjectIdentifier oid,
boolean critical,
X509Certificate certificate)
Add a given extension field for the standard extensions tag (tag 3)
copying the extension value from another certificate.
|
addExtension, build, copyAndAddExtension, setIssuerUniqueID, setSubjectUniqueID
public JcaX509v3CertificateBuilder(X500Name issuer, BigInteger serial, Date notBefore, Date notAfter, X500Name subject, PublicKey publicKey)
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.public JcaX509v3CertificateBuilder(X500Principal issuer, BigInteger serial, Date notBefore, Date notAfter, X500Principal subject, PublicKey publicKey)
issuer
- principal 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
- principal representing the subject of this certificate.publicKey
- the public key to be associated with the certificate.public JcaX509v3CertificateBuilder(X509Certificate issuerCert, BigInteger serial, Date notBefore, Date notAfter, X500Principal subject, PublicKey publicKey)
issuerCert
- 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.public JcaX509v3CertificateBuilder copyAndAddExtension(ASN1ObjectIdentifier oid, boolean critical, X509Certificate certificate) throws CertificateEncodingException
oid
- the type of the extension to be copied.critical
- true if the extension is to be marked critical, false otherwise.certificate
- the source of the extension to be copied.CertificateEncodingException
Copyright © 2015. All rights reserved.