Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Protected Ctors](https://developer.android.com/reference/java/security/cert/CRL#proctors) \| [Methods](https://developer.android.com/reference/java/security/cert/CRL#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/java/security/cert/CRL#inhmethods)

# CRL


`
public


abstract
class
CRL
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | java.security.cert.CRL |

|---|
| Known direct subclasses [X509CRL](https://developer.android.com/reference/java/security/cert/X509CRL) |---|---| | [X509CRL](https://developer.android.com/reference/java/security/cert/X509CRL) | Abstract class for an X.509 Certificate Revocation List (CRL). | |

<br />

*** ** * ** ***

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.
**See also:**

- `https://developer.android.com/reference/java/security/cert/X509CRL`
- `https://developer.android.com/reference/java/security/cert/CertificateFactory`

## Summary

| ### Protected constructors ||
|---|---|
| ` https://developer.android.com/reference/java/security/cert/CRL#CRL(java.lang.String)(https://developer.android.com/reference/java/lang/String type) ` Creates a CRL of the specified type. |

| ### Public methods ||
|---|---|
| ` final https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/security/cert/CRL#getType()() ` Returns the type of this CRL. |
| ` abstract boolean` | ` https://developer.android.com/reference/java/security/cert/CRL#isRevoked(java.security.cert.Certificate)(https://developer.android.com/reference/java/security/cert/Certificate cert) ` Checks whether the given certificate is on this CRL. |
| ` abstract https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/security/cert/CRL#toString()() ` Returns a string representation of this CRL. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/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 https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/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` | ` https://developer.android.com/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` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Protected constructors

### CRL

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
protected CRL (String type)
```

Creates a CRL of the specified type.

<br />

| Parameters ||
|---|---|
| `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. <br /> |

## Public methods

### getType

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public final String getType ()
```

Returns the type of this CRL.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | the type of this CRL. <br /> |

### isRevoked

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract boolean isRevoked (Certificate cert)
```

Checks whether the given certificate is on this CRL.

<br />

| Parameters ||
|---|---|
| `cert` | `Certificate`: the certificate to check for. <br /> |

| Returns ||
|---|---|
| `boolean` | true if the given certificate is on this CRL, false otherwise. <br /> |

### toString

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract String toString ()
```

Returns a string representation of this CRL.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | a string representation of this CRL. <br /> |