| Modifier and Type | Field and Description |
|---|---|
| private ExtensionsGenerator | |
| private V3TBSCertificateGenerator |
| Access | Constructor and Description |
|---|---|
| public | X509v3CertificateBuilder(X500Name
the certificate issuer issuer, BigInteger the certificate serial number serial, Date the date before which the certificate is not valid notBefore, Date the date after which the certificate is not valid notAfter, X500Name the certificate subject subject, SubjectPublicKeyInfo the info structure for the public key to be associated with this certificate. publicKeyInfo)Create a builder for a version 3 certificate. |
| public | X509v3CertificateBuilder(X500Name
the certificate issuer issuer, BigInteger the certificate serial number serial, Date the date before which the certificate is not valid notBefore, Date the date after which the certificate is not valid notAfter, Locale locale to be used for date interpretation. dateLocale, X500Name the certificate subject subject, SubjectPublicKeyInfo the info structure for the public key to be associated with this certificate. publicKeyInfo)Create a builder for a version 3 certificate. |
| public | X509v3CertificateBuilder(X500Name
the certificate issuer issuer, BigInteger the certificate serial number serial, Time the Time before which the certificate is not valid notBefore, Time the Time after which the certificate is not valid notAfter, X500Name the certificate subject subject, SubjectPublicKeyInfo the info structure for the public key to be associated with this certificate. publicKeyInfo)Create a builder for a version 3 certificate. |
| public | X509v3CertificateBuilder(X509CertificateHolder
template certificate to base the new one on. template)Create a builder for a version 3 certificate, initialised with another certificate. |
| Modifier and Type | Method and Description |
|---|---|
| public X509v3CertificateBuilder | Returns: this builder object.the OID defining the extension type. oid, boolean true if the extension is critical, false otherwise. isCritical, ASN1Encodable the ASN.1 structure that forms the extension's value. value)Add a given extension field for the standard extensions tag (tag 3) |
| public X509v3CertificateBuilder | Returns: this builder object.the full extension value. extension)Add a given extension field for the standard extensions tag (tag 3). |
| public X509v3CertificateBuilder | Returns: this builder object.the OID defining the extension type. oid, boolean true if the extension is critical, false otherwise. isCritical, byte[] a byte array representing the encoding of the extension value. encodedValue)Add a given extension field for the standard extensions tag (tag 3) using a byte encoding of the extension value. |
| pack-priv static DERBitString | |
| public X509CertificateHolder | Returns: a holder containing the resulting signed certificate.the content signer to be used to generate the signature validating the certificate. signer)Generate an X.509 certificate, based on the current issuer and subject using the passed in signer. |
| public X509CertificateHolder | Returns: a holder containing the resulting signed certificate.the content signer to be used to generate the signature validating the certificate. signer, boolean isCritical, ContentSigner the content signer used to create the altSignatureAlgorithm and altSignatureValue extension. altSigner)Generate an X.509 certificate, based on the current issuer and subject using the passed in signer and containing altSignatureAlgorithm and altSignatureValue extensions based on the passed altSigner. |
| public X509v3CertificateBuilder | Returns: this builder object.the OID defining the extension type. oid, boolean true if the copied extension is to be marked as critical, false otherwise. isCritical, X509CertificateHolder the holder for the certificate that the extension is to be copied from. certHolder)Add a given extension field for the standard extensions tag (tag 3) copying the extension value from another certificate. |
| private Extension | |
| private static byte[] | |
| private static Certificate | |
| public Extension | Returns: true if a matching extension is present, false otherwise.the OID for the extension we want to fetch. oid)Return the current value of the extension for OID. |
| public boolean | Returns: the Extension, or null if it is not present.the OID for the extension of interest. oid)Return if the extension indicated by OID is present. |
| public X509v3CertificateBuilder | Returns: this builder object.the OID of the extension to be removed. oid)Remove the extension indicated by OID. |
| public X509v3CertificateBuilder | Returns: this builder object.the OID defining the extension type. oid, boolean true if the extension is critical, false otherwise. isCritical, ASN1Encodable the ASN.1 structure that forms the extension's value. value)Replace the extension field for the passed in extension's extension ID with a new version. |
| public X509v3CertificateBuilder | Returns: this builder object.the full extension value. extension)Replace the extension field for the passed in extension's extension ID with a new version. |
| public X509v3CertificateBuilder | Returns: this builder object.the OID defining the extension type. oid, boolean true if the extension is critical, false otherwise. isCritical, byte[] a byte array representing the encoding of the extension value. encodedValue)Replace a given extension field for the standard extensions tag (tag 3) with the passed in byte encoded extension value. |
| public X509v3CertificateBuilder | Returns: this builder object.a boolean array representing the bits making up the issuerUniqueID. uniqueID)Set the issuerUniqueID - note: it is very rare that it is correct to do this. |
| public X509v3CertificateBuilder | Returns: this builder object.a boolean array representing the bits making up the subjectUniqueID. uniqueID)Set the subjectUniqueID - note: it is very rare that it is correct to do this. |
| extGenerator | back to summary |
|---|---|
| private ExtensionsGenerator extGenerator | |
| tbsGen | back to summary |
|---|---|
| private V3TBSCertificateGenerator tbsGen | |
| X509v3CertificateBuilder | back to summary |
|---|---|
| public X509v3CertificateBuilder(X500Name issuer, BigInteger serial, Date notBefore, Date notAfter, X500Name subject, SubjectPublicKeyInfo publicKeyInfo) Create a builder for a version 3 certificate.
| |
| X509v3CertificateBuilder | back to summary |
|---|---|
| public X509v3CertificateBuilder(X500Name issuer, BigInteger serial, Date notBefore, Date notAfter, Locale dateLocale, X500Name subject, SubjectPublicKeyInfo publicKeyInfo) Create a builder for a version 3 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.
| |
| X509v3CertificateBuilder | back to summary |
|---|---|
| public X509v3CertificateBuilder(X500Name issuer, BigInteger serial, Time notBefore, Time notAfter, X500Name subject, SubjectPublicKeyInfo publicKeyInfo) Create a builder for a version 3 certificate.
| |
| X509v3CertificateBuilder | back to summary |
|---|---|
| public X509v3CertificateBuilder(X509CertificateHolder template) Create a builder for a version 3 certificate, initialised with another certificate.
| |
| addExtension | back to summary |
|---|---|
| public X509v3CertificateBuilder addExtension(ASN1ObjectIdentifier oid, boolean isCritical, ASN1Encodable value) throws CertIOException Add a given extension field for the standard extensions tag (tag 3)
| |
| addExtension | back to summary |
|---|---|
| public X509v3CertificateBuilder addExtension(Extension extension) throws CertIOException Add a given extension field for the standard extensions tag (tag 3).
| |
| addExtension | back to summary |
|---|---|
| public X509v3CertificateBuilder addExtension(ASN1ObjectIdentifier oid, boolean isCritical, byte[] encodedValue) throws CertIOException Add a given extension field for the standard extensions tag (tag 3) using a byte encoding of the extension value.
| |
| booleanToBitString | back to summary |
|---|---|
| pack-priv static DERBitString booleanToBitString(boolean[] id) | |
| build | back to summary |
|---|---|
| public X509CertificateHolder build(ContentSigner signer) Generate an X.509 certificate, based on the current issuer and subject using the passed in signer.
| |
| build | back to summary |
|---|---|
| public X509CertificateHolder build(ContentSigner signer, boolean isCritical, ContentSigner altSigner) Generate an X.509 certificate, based on the current issuer and subject using the passed in signer and containing altSignatureAlgorithm and altSignatureValue extensions based on the passed altSigner.
| |
| copyAndAddExtension | back to summary |
|---|---|
| public X509v3CertificateBuilder copyAndAddExtension(ASN1ObjectIdentifier oid, boolean isCritical, X509CertificateHolder certHolder) Add a given extension field for the standard extensions tag (tag 3) copying the extension value from another certificate.
| |
| doGetExtension | back to summary |
|---|---|
| private Extension doGetExtension(ASN1ObjectIdentifier oid) | |
| generateSig | back to summary |
|---|---|
| private static byte[] generateSig(ContentSigner signer, ASN1Object tbsObj) throws IOException | |
| generateStructure | back to summary |
|---|---|
| private static Certificate generateStructure(TBSCertificate tbsCert, AlgorithmIdentifier sigAlgId, byte[] signature) | |
| getExtension | back to summary |
|---|---|
| public Extension getExtension(ASN1ObjectIdentifier oid) Return the current value of the extension for OID.
| |
| hasExtension | back to summary |
|---|---|
| public boolean hasExtension(ASN1ObjectIdentifier oid) Return if the extension indicated by OID is present.
| |
| removeExtension | back to summary |
|---|---|
| public X509v3CertificateBuilder removeExtension(ASN1ObjectIdentifier oid) Remove the extension indicated by OID.
| |
| replaceExtension | back to summary |
|---|---|
| public X509v3CertificateBuilder replaceExtension(ASN1ObjectIdentifier oid, boolean isCritical, ASN1Encodable value) throws CertIOException Replace the extension field for the passed in extension's extension ID with a new version.
| |
| replaceExtension | back to summary |
|---|---|
| public X509v3CertificateBuilder replaceExtension(Extension extension) throws CertIOException Replace the extension field for the passed in extension's extension ID with a new version.
| |
| replaceExtension | back to summary |
|---|---|
| public X509v3CertificateBuilder replaceExtension(ASN1ObjectIdentifier oid, boolean isCritical, byte[] encodedValue) throws CertIOException Replace a given extension field for the standard extensions tag (tag 3) with the passed in byte encoded extension value.
| |
| setIssuerUniqueID | back to summary |
|---|---|
| public X509v3CertificateBuilder setIssuerUniqueID(boolean[] uniqueID) Set the issuerUniqueID - note: it is very rare that it is correct to do this.
| |
| setSubjectUniqueID | back to summary |
|---|---|
| public X509v3CertificateBuilder setSubjectUniqueID(boolean[] uniqueID) Set the subjectUniqueID - note: it is very rare that it is correct to do this.
| |