CRL
Stay organized with collections
Save and categorize content based on your preferences.
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.
Protected Constructor Summary
|
CRL( String type)
Creates a CRL of the specified type.
|
Public Method Summary
final
String
|
getType()
Returns the type of this CRL.
|
abstract
boolean
|
|
abstract
String
|
toString()
Returns a string representation of this CRL.
|
Inherited Method Summary
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals( Object obj)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long timeout, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long timeout)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
Protected Constructors
protected
CRL
(String type)
Creates a CRL of the specified type.
Public Methods
public
final
String
getType
()
Returns the type of this CRL.
public
abstract
boolean
isRevoked
(Certificate cert)
Checks whether the given certificate is on this CRL.
Parameters
cert |
the certificate to check for. |
Returns
- true if the given certificate is on this CRL,
false otherwise.
public
abstract
String
toString
()
Returns a string representation of this CRL.
Returns
- a string representation of this CRL.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCRL\u003c/code\u003e class is an abstract class representing Certificate Revocation Lists, providing a common interface for different CRL formats.\u003c/p\u003e\n"],["\u003cp\u003eIt offers functionality to check if a certificate is revoked using the \u003ccode\u003eisRevoked()\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCRL\u003c/code\u003e can be extended to define specialized CRL types by subclassing.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetType()\u003c/code\u003e method retrieves the type of the CRL, and \u003ccode\u003etoString()\u003c/code\u003e provides a string representation.\u003c/p\u003e\n"]]],[],null,["# CRL\n\npublic abstract class **CRL** extends [Object](../../../../reference/java/lang/Object.html) \n\n|---|---|---|\n| Known Direct Subclasses [X509CRL](../../../../reference/java/security/cert/X509CRL.html) |------------------------------------------------------------------|----------------------------------------------------------------| | [X509CRL](../../../../reference/java/security/cert/X509CRL.html) | Abstract class for an X.509 Certificate Revocation List (CRL). | |||\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\n##### See Also\n\n- [X509CRL](../../../../reference/java/security/cert/X509CRL.html)\n- [CertificateFactory](../../../../reference/java/security/cert/CertificateFactory.html) \n\n### Protected Constructor Summary\n\n|---|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [CRL](../../../../reference/java/security/cert/CRL.html#CRL(java.lang.String))([String](../../../../reference/java/lang/String.html) type) Creates a CRL of the specified type. |\n\n### Public Method Summary\n\n|----------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| final [String](../../../../reference/java/lang/String.html) | [getType](../../../../reference/java/security/cert/CRL.html#getType())() Returns the type of this CRL. |\n| abstract boolean | [isRevoked](../../../../reference/java/security/cert/CRL.html#isRevoked(java.security.cert.Certificate))([Certificate](../../../../reference/java/security/cert/Certificate.html) cert) Checks whether the given certificate is on this CRL. |\n| abstract [String](../../../../reference/java/lang/String.html) | [toString](../../../../reference/java/security/cert/CRL.html#toString())() Returns a string representation of this CRL. |\n\n### Inherited Method Summary\n\nFrom class [java.lang.Object](../../../../reference/java/lang/Object.html) \n\n|----------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Object](../../../../reference/java/lang/Object.html) | [clone](../../../../reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |\n| boolean | [equals](../../../../reference/java/lang/Object.html#equals(java.lang.Object))([Object](../../../../reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |\n| void | [finalize](../../../../reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |\n| final [Class](../../../../reference/java/lang/Class.html)\\\u003c?\\\u003e | [getClass](../../../../reference/java/lang/Object.html#getClass())() Returns the unique instance of [Class](../../../../reference/java/lang/Class.html) that represents this object's class. |\n| int | [hashCode](../../../../reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |\n| final void | [notify](../../../../reference/java/lang/Object.html#notify())() Causes a thread which is waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |\n| final void | [notifyAll](../../../../reference/java/lang/Object.html#notifyAll())() Causes all threads which are waiting on this object's monitor (by means of calling one of the `wait()` methods) to be woken up. |\n| [String](../../../../reference/java/lang/String.html) | [toString](../../../../reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |\n| final void | [wait](../../../../reference/java/lang/Object.html#wait(long,%20int))(long timeout, int nanos) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |\n| final void | [wait](../../../../reference/java/lang/Object.html#wait(long))(long timeout) Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object or until the specified timeout expires. |\n| final void | [wait](../../../../reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |\n\nProtected Constructors\n----------------------\n\n#### protected\n**CRL**\n([String](../../../../reference/java/lang/String.html) type)\n\nCreates a CRL of the specified type. \n\n##### Parameters\n\n| type | the standard name of the CRL type. See Appendix A in the [Java Cryptography Architecture API Specification \\& Reference](../../../../technotes/guides/security/crypto/CryptoSpec.html#AppA) for information about standard CRL types. |\n|------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n\nPublic Methods\n--------------\n\n#### public final [String](../../../../reference/java/lang/String.html)\n**getType**\n()\n\nReturns the type of this CRL. \n\n##### Returns\n\n- the type of this CRL. \n\n#### public abstract boolean\n**isRevoked**\n([Certificate](../../../../reference/java/security/cert/Certificate.html) cert)\n\nChecks whether the given certificate is on this CRL. \n\n##### Parameters\n\n| cert | the certificate to check for. |\n|------|-------------------------------|\n\n##### Returns\n\n- true if the given certificate is on this CRL, false otherwise. \n\n#### public abstract [String](../../../../reference/java/lang/String.html)\n**toString**\n()\n\nReturns a string representation of this CRL. \n\n##### Returns\n\n- a string representation of this CRL."]]