| Modifier and Type | Field and Description |
|---|---|
| private ExtensionsGenerator | |
| private V2TBSCertListGenerator |
| Access | Constructor and Description |
|---|---|
| public | X509v2CRLBuilder(X500Name
the issuer this CRL is associated with. issuer, Date the date of this update. thisUpdate)Basic constructor. |
| public | X509v2CRLBuilder(X500Name
the issuer this CRL is associated with. issuer, Date the date of this update. thisUpdate, Locale locale to be used for date interpretation. dateLocale)Basic constructor with Locale. |
| public | X509v2CRLBuilder(X500Name
the issuer this CRL is associated with. issuer, Time the Time of this update. thisUpdate)Basic constructor. |
| public | X509v2CRLBuilder(X509CRLHolder
template CRL to base the new one on. template)Create a builder for a version 2 CRL, initialised with another CRL. |
| Modifier and Type | Method and Description |
|---|---|
| public X509v2CRLBuilder | Returns: the current builder.the X509CRLHolder to source the other entries from. other)Add the CRLEntry objects contained in a previous CRL. |
| public X509v2CRLBuilder | Returns: the current builder.serial number of revoked certificate. userCertificateSerial, Date date of certificate revocation. revocationDate, int the reason code, as indicated in CRLReason, i.e CRLReason.keyCompromise, or 0 if not to be used. reason)Add a CRL entry with the just reasonCode extension. |
| public X509v2CRLBuilder | Returns: the current builder.serial number of revoked certificate. userCertificateSerial, Date date of certificate revocation. revocationDate, int the reason code, as indicated in CRLReason, i.e CRLReason.keyCompromise, or 0 if not to be used. reason, Date the date on which the private key for the certificate became compromised or the certificate otherwise became invalid. invalidityDate)Add a CRL entry with an invalidityDate extension as well as a reasonCode extension. |
| public X509v2CRLBuilder | Returns: the current builder.serial number of revoked certificate. userCertificateSerial, Date date of certificate revocation. revocationDate, Extensions extension set to be associated with this CRLEntry. extensions)Add a CRL entry with extensions. |
| public X509v2CRLBuilder | 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 X509v2CRLBuilder | 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. |
| public X509v2CRLBuilder | Returns: this builder object.the full extension value. extension)Add a given extension field for the standard extensions tag (tag 3). |
| public X509CRLHolder | 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 CRL, based on the current issuer and subject using the passed in signer. |
| public X509CRLHolder | Returns: a holder containing the resulting signed CRL.the content signer to be used to generate the signature validating the CRL. signer, boolean isCritical, ContentSigner the content signer used to create the altSignatureAlgorithm and altSignatureValue extension. altSigner)Generate an X.509 CRL, based on the current issuer using the passed in signer and containing altSignatureAlgorithm and altSignatureValue extensions based on the passed altSigner. |
| private Extension | |
| private static CertificateList | |
| private static X509CRLHolder | |
| private static byte[] | |
| 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 X509v2CRLBuilder | Returns: this builder object.the OID of the extension to be removed. oid)Remove the extension indicated by OID. |
| public X509v2CRLBuilder | 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 X509v2CRLBuilder | 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 X509v2CRLBuilder | 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 X509v2CRLBuilder | Returns: the current builder.date of next CRL update. date)Set the date by which the next CRL will become available. |
| public X509v2CRLBuilder | Returns: the current builder.date of next CRL update. date, Locale locale to be used for date interpretation. dateLocale)Set the date by which the next CRL will become available. |
| public X509v2CRLBuilder | Returns: the current builder.date of next CRL update. date)Set the date by which the next CRL will become available. |
| extGenerator | back to summary |
|---|---|
| private ExtensionsGenerator extGenerator | |
| tbsGen | back to summary |
|---|---|
| private V2TBSCertListGenerator tbsGen | |
| X509v2CRLBuilder | back to summary |
|---|---|
| public X509v2CRLBuilder(X500Name issuer, Date thisUpdate) Basic constructor. | |
| X509v2CRLBuilder | back to summary |
|---|---|
| public X509v2CRLBuilder(X500Name issuer, Date thisUpdate, Locale dateLocale) Basic constructor with Locale. 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. | |
| X509v2CRLBuilder | back to summary |
|---|---|
| public X509v2CRLBuilder(X500Name issuer, Time thisUpdate) Basic constructor. | |
| X509v2CRLBuilder | back to summary |
|---|---|
| public X509v2CRLBuilder(X509CRLHolder template) Create a builder for a version 2 CRL, initialised with another CRL.
| |
| addCRL | back to summary |
|---|---|
| public X509v2CRLBuilder addCRL(X509CRLHolder other) Add the CRLEntry objects contained in a previous CRL.
| |
| addCRLEntry | back to summary |
|---|---|
| public X509v2CRLBuilder addCRLEntry(BigInteger userCertificateSerial, Date revocationDate, int reason) Add a CRL entry with the just reasonCode extension.
| |
| addCRLEntry | back to summary |
|---|---|
| public X509v2CRLBuilder addCRLEntry(BigInteger userCertificateSerial, Date revocationDate, int reason, Date invalidityDate) Add a CRL entry with an invalidityDate extension as well as a reasonCode extension. This is used where the date of revocation might be after issues with the certificate may have occurred.
| |
| addCRLEntry | back to summary |
|---|---|
| public X509v2CRLBuilder addCRLEntry(BigInteger userCertificateSerial, Date revocationDate, Extensions extensions) Add a CRL entry with extensions.
| |
| addExtension | back to summary |
|---|---|
| public X509v2CRLBuilder 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 X509v2CRLBuilder 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.
| |
| addExtension | back to summary |
|---|---|
| public X509v2CRLBuilder addExtension(Extension extension) throws CertIOException Add a given extension field for the standard extensions tag (tag 3).
| |
| build | back to summary |
|---|---|
| public X509CRLHolder build(ContentSigner signer) Generate an X.509 CRL, based on the current issuer and subject using the passed in signer.
| |
| build | back to summary |
|---|---|
| public X509CRLHolder build(ContentSigner signer, boolean isCritical, ContentSigner altSigner) Generate an X.509 CRL, based on the current issuer using the passed in signer and containing altSignatureAlgorithm and altSignatureValue extensions based on the passed altSigner.
| |
| doGetExtension | back to summary |
|---|---|
| private Extension doGetExtension(ASN1ObjectIdentifier oid) | |
| generateCRLStructure | back to summary |
|---|---|
| private static CertificateList generateCRLStructure(TBSCertList tbsCertList, AlgorithmIdentifier sigAlgId, byte[] signature) | |
| generateFullCRL | back to summary |
|---|---|
| private static X509CRLHolder generateFullCRL(ContentSigner signer, TBSCertList tbsCertList) | |
| generateSig | back to summary |
|---|---|
| private static byte[] generateSig(ContentSigner signer, ASN1Object tbsObj) throws IOException | |
| 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 X509v2CRLBuilder removeExtension(ASN1ObjectIdentifier oid) Remove the extension indicated by OID.
| |
| replaceExtension | back to summary |
|---|---|
| public X509v2CRLBuilder 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 X509v2CRLBuilder 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 X509v2CRLBuilder 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.
| |
| setNextUpdate | back to summary |
|---|---|
| public X509v2CRLBuilder setNextUpdate(Date date) Set the date by which the next CRL will become available.
| |
| setNextUpdate | back to summary |
|---|---|
| public X509v2CRLBuilder setNextUpdate(Date date, Locale dateLocale) Set the date by which the next CRL will become available.
| |
| setNextUpdate | back to summary |
|---|---|
| public X509v2CRLBuilder setNextUpdate(Time date) Set the date by which the next CRL will become available.
| |