Stay organized with collections
Save and categorize content based on your preferences.
CRL
public
abstract
class
CRL
extends Object
Known direct subclasses
X509CRL |
Abstract class for an X.509 Certificate Revocation List (CRL).
|
|
This class is an abstraction of certificate revocation lists (CRLs) that
have different formats but important common uses. For example, all CRLs
share the functionality of listing revoked certificates, and can be queried
on whether or not they list a given certificate.
Specialized CRL types can be defined by subclassing off of this abstract
class.
Summary
Protected constructors |
CRL(String type)
Creates a CRL of the specified type.
|
Public methods |
final
String
|
getType()
Returns the type of this CRL.
|
abstract
boolean
|
isRevoked(Certificate cert)
Checks whether the given certificate is on this CRL.
|
abstract
String
|
toString()
Returns a string representation of this CRL.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
Protected constructors
CRL
protected CRL (String type)
Creates a CRL of the specified type.
Public methods
getType
public final String getType ()
Returns the type of this CRL.
Returns |
String |
the type of this CRL. |
isRevoked
public abstract boolean isRevoked (Certificate cert)
Checks whether the given certificate is on this CRL.
Parameters |
cert |
Certificate : the certificate to check for. |
Returns |
boolean |
true if the given certificate is on this CRL,
false otherwise. |
toString
public abstract String toString ()
Returns a string representation of this CRL.
Returns |
String |
a string representation of this CRL. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# CRL\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Protected Ctors](#proctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nCRL\n===\n\n\n`\npublic\n\n\nabstract\nclass\nCRL\n`\n\n\n`\n\nextends `[Object](/reference/java/lang/Object)`\n\n\n`\n\n`\n\n\n`\n\n|---|------------------------|\n| [java.lang.Object](/reference/java/lang/Object) ||\n| ↳ | java.security.cert.CRL |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known direct subclasses [X509CRL](/reference/java/security/cert/X509CRL) |--------------------------------------------------|----------------------------------------------------------------| | [X509CRL](/reference/java/security/cert/X509CRL) | Abstract class for an X.509 Certificate Revocation List (CRL). | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nThis class is an abstraction of certificate revocation lists (CRLs) that\nhave different formats but important common uses. For example, all CRLs\nshare the functionality of listing revoked certificates, and can be queried\non whether or not they list a given certificate.\n\n\nSpecialized CRL types can be defined by subclassing off of this abstract\nclass. \n**See also:**\n\n- [X509CRL](/reference/java/security/cert/X509CRL)\n- [CertificateFactory](/reference/java/security/cert/CertificateFactory)\n\nSummary\n-------\n\n| ### Protected constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[CRL](/reference/java/security/cert/CRL#CRL(java.lang.String))`(`[String](/reference/java/lang/String)` type) ` Creates a CRL of the specified type. |\n\n| ### Public methods ||\n|---------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` final `[String](/reference/java/lang/String) | ` `[getType](/reference/java/security/cert/CRL#getType())`() ` Returns the type of this CRL. |\n| ` abstract boolean` | ` `[isRevoked](/reference/java/security/cert/CRL#isRevoked(java.security.cert.Certificate))`(`[Certificate](/reference/java/security/cert/Certificate)` cert) ` Checks whether the given certificate is on this CRL. |\n| ` abstract `[String](/reference/java/lang/String) | ` `[toString](/reference/java/security/cert/CRL#toString())`() ` Returns a string representation of this CRL. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` `[java.lang.Object](/reference/java/lang/Object)` ` |---------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](/reference/java/lang/Object) | ` `[clone](/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object. | | ` boolean` | ` `[equals](/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](/reference/java/lang/Object)` obj) ` Indicates whether some other object is \"equal to\" this one. | | ` void` | ` `[finalize](/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final `[Class](/reference/java/lang/Class)`\u003c?\u003e` | ` `[getClass](/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this `Object`. | | ` int` | ` `[hashCode](/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object. | | ` final void` | ` `[notify](/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` `[notifyAll](/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor. | | ` `[String](/reference/java/lang/String) | ` `[toString](/reference/java/lang/Object#toString())`() ` Returns a string representation of the object. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` `[wait](/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||\n\nProtected constructors\n----------------------\n\n### CRL\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\nprotected CRL (String type)\n```\n\nCreates a CRL of the specified type.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `type` | `String`: the standard name of the CRL type. See the [Java Security Standard Algorithm Names](https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html) document for information about standard CRL types. \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### getType\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic final String getType ()\n```\n\nReturns the type of this CRL.\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------------------------------------|------------------------------|\n| [String](/reference/java/lang/String) | the type of this CRL. \u003cbr /\u003e |\n\n### isRevoked\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract boolean isRevoked (Certificate cert)\n```\n\nChecks whether the given certificate is on this CRL.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------|-----------------------------------------------------|\n| `cert` | `Certificate`: the certificate to check for. \u003cbr /\u003e |\n\n| Returns ||\n|-----------|-----------------------------------------------------------------------|\n| `boolean` | true if the given certificate is on this CRL, false otherwise. \u003cbr /\u003e |\n\n### toString\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract String toString ()\n```\n\nReturns a string representation of this CRL.\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------------------------------------|---------------------------------------------|\n| [String](/reference/java/lang/String) | a string representation of this CRL. \u003cbr /\u003e |"]]