Skip to content

Most visited

Recently visited

navigation
Added in API level 1

X509CRL

public abstract class X509CRL
extends CRL implements X509Extension

java.lang.Object
   ↳ java.security.cert.CRL
     ↳ java.security.cert.X509CRL


Abstract base class for X.509 certificate revocation lists (CRL).

More information regarding CRL can be found in RFC 2459, "Internet X.509 Public Key Infrastructure Certificate and CRL Profile" at http://www.ietf.org/rfc/rfc2459.txt .

Summary

Protected constructors

X509CRL()

Creates a new X509CRL instance.

Public methods

boolean equals(Object other)

Returns whether the specified object equals to this instance.

abstract byte[] getEncoded()

Returns this CRL in ASN.1 DER encoded form.

abstract Principal getIssuerDN()

Do not use, use getIssuerX500Principal() instead.

X500Principal getIssuerX500Principal()

Returns the issuer distinguished name of this CRL.

abstract Date getNextUpdate()

Returns the nextUpdate value of this CRL.

X509CRLEntry getRevokedCertificate(X509Certificate certificate)

Returns the CRL entry for the specified certificate.

abstract X509CRLEntry getRevokedCertificate(BigInteger serialNumber)

Returns the CRL entry with the specified certificate serial number.

abstract Set<? extends X509CRLEntry> getRevokedCertificates()

Returns the set of revoked certificates.

abstract String getSigAlgName()

Returns the name of the signature algorithm.

abstract String getSigAlgOID()

Returns the OID of the signature algorithm.

abstract byte[] getSigAlgParams()

Returns the parameters of the signature algorithm in DER encoded form.

abstract byte[] getSignature()

Returns the signature bytes of this CRL.

abstract byte[] getTBSCertList()

Returns the tbsCertList information of this CRL in DER encoded form.

abstract Date getThisUpdate()

Returns the thisUpdate value of this CRL.

abstract int getVersion()

Returns the version number of this CRL.

int hashCode()

Returns the hashcode of this CRL instance.

abstract void verify(PublicKey key, String sigProvider)

Verifies this CRL by verifying that this CRL was signed with the corresponding private key to the specified public key.

abstract void verify(PublicKey key)

Verifies this CRL by verifying that this CRL was signed with the corresponding private key to the specified public key.

Inherited methods

From class java.security.cert.CRL
From class java.lang.Object
From interface java.security.cert.X509Extension

Protected constructors

X509CRL

Added in API level 1
X509CRL ()

Creates a new X509CRL instance.

Public methods

equals

Added in API level 1
boolean equals (Object other)

Returns whether the specified object equals to this instance.

Parameters
other Object: the object to compare.
Returns
boolean true if the specified object is equal to this, otherwise false.

getEncoded

Added in API level 1
byte[] getEncoded ()

Returns this CRL in ASN.1 DER encoded form.

Returns
byte[] this CRL in ASN.1 DER encoded form.
Throws
CRLException if encoding fails.

getIssuerDN

Added in API level 1
Principal getIssuerDN ()

Do not use, use getIssuerX500Principal() instead. Returns the issuer as an implementation specific Principal object.

Returns
Principal the issuer distinguished name.

getIssuerX500Principal

Added in API level 1
X500Principal getIssuerX500Principal ()

Returns the issuer distinguished name of this CRL.

Returns
X500Principal the issuer distinguished name of this CRL.

getNextUpdate

Added in API level 1
Date getNextUpdate ()

Returns the nextUpdate value of this CRL.

Returns
Date the nextUpdate value of this CRL, or null if none is present.

getRevokedCertificate

Added in API level 1
X509CRLEntry getRevokedCertificate (X509Certificate certificate)

Returns the CRL entry for the specified certificate.

Parameters
certificate X509Certificate: the certificate to search a CRL entry for.
Returns
X509CRLEntry the entry for the specified certificate, or null if not found.

getRevokedCertificate

Added in API level 1
X509CRLEntry getRevokedCertificate (BigInteger serialNumber)

Returns the CRL entry with the specified certificate serial number.

Parameters
serialNumber BigInteger: the certificate serial number to search for a CRL entry.
Returns
X509CRLEntry the entry for the specified certificate serial number, or null if not found.

getRevokedCertificates

Added in API level 1
Set<? extends X509CRLEntry> getRevokedCertificates ()

Returns the set of revoked certificates.

Returns
Set<? extends X509CRLEntry> the set of revoked certificates, or null if no revoked certificates are in this CRL.

getSigAlgName

Added in API level 1
String getSigAlgName ()

Returns the name of the signature algorithm.

Returns
String the name of the signature algorithm.

getSigAlgOID

Added in API level 1
String getSigAlgOID ()

Returns the OID of the signature algorithm.

Returns
String the OID of the signature algorithm.

getSigAlgParams

Added in API level 1
byte[] getSigAlgParams ()

Returns the parameters of the signature algorithm in DER encoded form.

Returns
byte[] the parameters of the signature algorithm in DER encoded form, or null if not present.

getSignature

Added in API level 1
byte[] getSignature ()

Returns the signature bytes of this CRL.

Returns
byte[] the signature bytes of this CRL.

getTBSCertList

Added in API level 1
byte[] getTBSCertList ()

Returns the tbsCertList information of this CRL in DER encoded form.

Returns
byte[] the CRL information in DER encoded form.
Throws
CRLException if encoding fails.

getThisUpdate

Added in API level 1
Date getThisUpdate ()

Returns the thisUpdate value of this CRL.

Returns
Date the thisUpdate value of this CRL.

getVersion

Added in API level 1
int getVersion ()

Returns the version number of this CRL.

Returns
int the version number of this CRL.

hashCode

Added in API level 1
int hashCode ()

Returns the hashcode of this CRL instance.

Returns
int the hashcode.

verify

Added in API level 1
void verify (PublicKey key, 
                String sigProvider)

Verifies this CRL by verifying that this CRL was signed with the corresponding private key to the specified public key. The signature verification engine of the specified provider will be used.

Parameters
key PublicKey: the public key to verify this CRL with.
sigProvider String: the name of the provider for the signature algorithm.
Throws
CRLException if encoding decoding fails.
NoSuchAlgorithmException if a needed algorithm is not present.
InvalidKeyException if the specified key is invalid.
NoSuchProviderException if the specified provider cannot be found.
SignatureException if errors occur on signatures.

verify

Added in API level 1
void verify (PublicKey key)

Verifies this CRL by verifying that this CRL was signed with the corresponding private key to the specified public key.

Parameters
key PublicKey: the public key to verify this CRL with.
Throws
CRLException if encoding or decoding fails.
NoSuchAlgorithmException if a needed algorithm is not present.
InvalidKeyException if the specified key is invalid.
NoSuchProviderException if no provider can be found.
SignatureException if errors occur on signatures.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.