GeezerVison is showing docs.oracle.com — X509CRL (Java Platform SE 8 )
Java™ Platform Standard Ed. 8
compact1, compact2, compact3
java.security.cert
Class X509CRL
-
-
Constructor Summary
Constructors
| Modifier |
Constructor |
Description |
protected |
X509CRL() |
Constructor for X.509 CRLs.
|
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods
| Modifier and Type |
Method |
Description |
boolean |
equals(Object other) |
Compares this CRL for equality with the given
object.
|
abstract byte[] |
getEncoded() |
Returns the ASN.1 DER-encoded form of this CRL.
|
abstract Principal |
getIssuerDN() |
|
X500Principal |
getIssuerX500Principal() |
Returns the issuer (issuer distinguished name) value from the
CRL as an X500Principal.
|
abstract Date |
getNextUpdate() |
Gets the nextUpdate date from the CRL.
|
abstract X509CRLEntry |
getRevokedCertificate(BigInteger serialNumber) |
Gets the CRL entry, if any, with the given certificate serialNumber.
|
X509CRLEntry |
getRevokedCertificate(X509Certificate certificate) |
Get the CRL entry, if any, for the given certificate.
|
abstract Set<? extends X509CRLEntry> |
getRevokedCertificates() |
Gets all the entries from this CRL.
|
abstract String |
getSigAlgName() |
Gets the signature algorithm name for the CRL
signature algorithm.
|
abstract String |
getSigAlgOID() |
Gets the signature algorithm OID string from the CRL.
|
abstract byte[] |
getSigAlgParams() |
Gets the DER-encoded signature algorithm parameters from this
CRL's signature algorithm.
|
abstract byte[] |
getSignature() |
Gets the signature value (the raw signature bits) from
the CRL.
|
abstract byte[] |
getTBSCertList() |
Gets the DER-encoded CRL information, the
tbsCertList from this CRL.
|
abstract Date |
getThisUpdate() |
Gets the thisUpdate date from the CRL.
|
abstract int |
getVersion() |
Gets the version (version number) value from the CRL.
|
int |
hashCode() |
Returns a hashcode value for this CRL from its
encoded form.
|
abstract void |
verify(PublicKey key) |
Verifies that this CRL was signed using the
private key that corresponds to the given public key.
|
void |
verify(PublicKey key,
Provider sigProvider) |
Verifies that this CRL was signed using the
private key that corresponds to the given public key.
|
abstract void |
verify(PublicKey key,
String sigProvider) |
Verifies that this CRL was signed using the
private key that corresponds to the given public key.
|
-
-
Method Detail
-
equals
public boolean equals(Object other)
Compares this CRL for equality with the given
object. If the other object is an
instanceof X509CRL, then
its encoded form is retrieved and compared with the
encoded form of this CRL.
- Overrides:
equals in class Object
- Parameters:
other - the object to test for equality with this CRL.
- Returns:
- true iff the encoded forms of the two CRLs
match, false otherwise.
- See Also:
Object.hashCode(),
HashMap
-
verify
public void verify(PublicKey key,
Provider sigProvider)
throws CRLException,
NoSuchAlgorithmException,
InvalidKeyException,
SignatureException
Verifies that this CRL was signed using the
private key that corresponds to the given public key.
This method uses the signature verification engine
supplied by the given provider. Note that the specified Provider object
does not have to be registered in the provider list.
This method was added to version 1.8 of the Java Platform Standard
Edition. In order to maintain backwards compatibility with existing
service providers, this method is not abstract
and it provides a default implementation.
- Parameters:
key - the PublicKey used to carry out the verification.
sigProvider - the signature provider.
- Throws:
NoSuchAlgorithmException - on unsupported signature
algorithms.
InvalidKeyException - on incorrect key.
SignatureException - on signature errors.
CRLException - on encoding errors.
- Since:
- 1.8
-
getRevokedCertificate
public abstract X509CRLEntry getRevokedCertificate(BigInteger serialNumber)
Gets the CRL entry, if any, with the given certificate serialNumber.
- Parameters:
serialNumber - the serial number of the certificate for which a CRL entry
is to be looked up
- Returns:
- the entry with the given serial number, or null if no such entry
exists in this CRL.
- See Also:
X509CRLEntry
-
getTBSCertList
public abstract byte[] getTBSCertList()
throws CRLException
Gets the DER-encoded CRL information, the
tbsCertList from this CRL.
This can be used to verify the signature independently.
- Returns:
- the DER-encoded CRL information.
- Throws:
CRLException - if an encoding error occurs.
Java™ Platform Standard Ed. 8
Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
|