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/X509CRL#proctors) \| [Methods](https://developer.android.com/reference/java/security/cert/X509CRL#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/java/security/cert/X509CRL#inhmethods)

# X509CRL


`
public


abstract
class
X509CRL
`


`


`

`

extends https://developer.android.com/reference/java/security/cert/CRL


`

`


implements

https://developer.android.com/reference/java/security/cert/X509Extension


`

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

<br />

*** ** * ** ***

<br />


Abstract class for an X.509 Certificate Revocation List (CRL).
A CRL is a time-stamped list identifying revoked certificates.
It is signed by a Certificate Authority (CA) and made freely
available in a public repository.

Each revoked certificate is
identified in a CRL by its certificate serial number. When a
certificate-using system uses a certificate (e.g., for verifying a
remote user's digital signature), that system not only checks the
certificate signature and validity but also acquires a suitably-
recent CRL and checks that the certificate serial number is not on
that CRL. The meaning of "suitably-recent" may vary with local
policy, but it usually means the most recently-issued CRL. A CA
issues a new CRL on a regular periodic basis (e.g., hourly, daily, or
weekly). Entries are added to CRLs as revocations occur, and an
entry may be removed when the certificate expiration date is reached.


The X.509 v2 CRL format is described below in ASN.1:

```
CertificateList  ::=  SEQUENCE  {
    tbsCertList          TBSCertList,
    signatureAlgorithm   AlgorithmIdentifier,
    signature            BIT STRING  }
```


More information can be found in
[RFC 3280: Internet X.509
Public Key Infrastructure Certificate and CRL Profile](http://www.ietf.org/rfc/rfc3280.txt).


The ASN.1 definition of `tbsCertList` is:

```
TBSCertList  ::=  SEQUENCE  {
    version                 Version OPTIONAL,
                            -- if present, must be v2
    signature               AlgorithmIdentifier,
    issuer                  Name,
    thisUpdate              ChoiceOfTime,
    nextUpdate              ChoiceOfTime OPTIONAL,
    revokedCertificates     SEQUENCE OF SEQUENCE  {
        userCertificate         CertificateSerialNumber,
        revocationDate          ChoiceOfTime,
        crlEntryExtensions      Extensions OPTIONAL
                                -- if present, must be v2
        }  OPTIONAL,
    crlExtensions           [0]  EXPLICIT Extensions OPTIONAL
                                 -- if present, must be v2
    }
```


CRLs are instantiated using a certificate factory. The following is an
example of how to instantiate an X.509 CRL:

    try (InputStream inStream = new FileInputStream("fileName-of-crl")) {
        CertificateFactory cf = CertificateFactory.getInstance("X.509");
        X509CRL crl = (X509CRL)cf.generateCRL(inStream);
    }

<br />

**See also:**

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

## Summary

| ### Protected constructors ||
|---|---|
| ` https://developer.android.com/reference/java/security/cert/X509CRL#X509CRL()() ` Constructor for X.509 CRLs. |

| ### Public methods ||
|---|---|
| ` boolean` | ` https://developer.android.com/reference/java/security/cert/X509CRL#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object other) ` Compares this CRL for equality with the given object. |
| ` abstract byte[]` | ` https://developer.android.com/reference/java/security/cert/X509CRL#getEncoded()() ` Returns the ASN.1 DER-encoded form of this CRL. |
| ` abstract https://developer.android.com/reference/java/security/Principal` | ` https://developer.android.com/reference/java/security/cert/X509CRL#getIssuerDN()() ` **Denigrated** , replaced by [getIssuerX500Principal()](https://developer.android.com/reference/java/security/cert/X509CRL#getIssuerX500Principal()). |
| ` https://developer.android.com/reference/javax/security/auth/x500/X500Principal` | ` https://developer.android.com/reference/java/security/cert/X509CRL#getIssuerX500Principal()() ` Returns the issuer (issuer distinguished name) value from the CRL as an `X500Principal`. |
| ` abstract https://developer.android.com/reference/java/util/Date` | ` https://developer.android.com/reference/java/security/cert/X509CRL#getNextUpdate()() ` Gets the `nextUpdate` date from the CRL. |
| ` https://developer.android.com/reference/java/security/cert/X509CRLEntry` | ` https://developer.android.com/reference/java/security/cert/X509CRL#getRevokedCertificate(java.security.cert.X509Certificate)(https://developer.android.com/reference/java/security/cert/X509Certificate certificate) ` Get the CRL entry, if any, for the given certificate. |
| ` abstract https://developer.android.com/reference/java/security/cert/X509CRLEntry` | ` https://developer.android.com/reference/java/security/cert/X509CRL#getRevokedCertificate(java.math.BigInteger)(https://developer.android.com/reference/java/math/BigInteger serialNumber) ` Gets the CRL entry, if any, with the given certificate serialNumber. |
| ` abstract https://developer.android.com/reference/java/util/Set<? extends https://developer.android.com/reference/java/security/cert/X509CRLEntry>` | ` https://developer.android.com/reference/java/security/cert/X509CRL#getRevokedCertificates()() ` Gets all the entries from this CRL. |
| ` abstract https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/security/cert/X509CRL#getSigAlgName()() ` Gets the signature algorithm name for the CRL signature algorithm. |
| ` abstract https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/security/cert/X509CRL#getSigAlgOID()() ` Gets the signature algorithm OID string from the CRL. |
| ` abstract byte[]` | ` https://developer.android.com/reference/java/security/cert/X509CRL#getSigAlgParams()() ` Gets the DER-encoded signature algorithm parameters from this CRL's signature algorithm. |
| ` abstract byte[]` | ` https://developer.android.com/reference/java/security/cert/X509CRL#getSignature()() ` Gets the `signature` value (the raw signature bits) from the CRL. |
| ` abstract byte[]` | ` https://developer.android.com/reference/java/security/cert/X509CRL#getTBSCertList()() ` Gets the DER-encoded CRL information, the `tbsCertList` from this CRL. |
| ` abstract https://developer.android.com/reference/java/util/Date` | ` https://developer.android.com/reference/java/security/cert/X509CRL#getThisUpdate()() ` Gets the `thisUpdate` date from the CRL. |
| ` abstract int` | ` https://developer.android.com/reference/java/security/cert/X509CRL#getVersion()() ` Gets the `version` (version number) value from the CRL. |
| ` int` | ` https://developer.android.com/reference/java/security/cert/X509CRL#hashCode()() ` Returns a hashcode value for this CRL from its encoded form. |
| ` void` | ` https://developer.android.com/reference/java/security/cert/X509CRL#verify(java.security.PublicKey,%20java.security.Provider)(https://developer.android.com/reference/java/security/PublicKey key, https://developer.android.com/reference/java/security/Provider sigProvider) ` Verifies that this CRL was signed using the private key that corresponds to the given public key. |
| ` abstract void` | ` https://developer.android.com/reference/java/security/cert/X509CRL#verify(java.security.PublicKey)(https://developer.android.com/reference/java/security/PublicKey key) ` Verifies that this CRL was signed using the private key that corresponds to the given public key. |
| ` abstract void` | ` https://developer.android.com/reference/java/security/cert/X509CRL#verify(java.security.PublicKey,%20java.lang.String)(https://developer.android.com/reference/java/security/PublicKey key, https://developer.android.com/reference/java/lang/String sigProvider) ` Verifies that this CRL was signed using the private key that corresponds to the given public key. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/security/cert/CRL ` |---|---| | ` 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. | ||
| 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*. | ||
| From interface ` https://developer.android.com/reference/java/security/cert/X509Extension ` |---|---| | ` abstract https://developer.android.com/reference/java/util/Set<https://developer.android.com/reference/java/lang/String>` | ` https://developer.android.com/reference/java/security/cert/X509Extension#getCriticalExtensionOIDs()() ` Gets a Set of the OID strings for the extension(s) marked CRITICAL in the certificate/CRL managed by the object implementing this interface. | | ` abstract byte[]` | ` https://developer.android.com/reference/java/security/cert/X509Extension#getExtensionValue(java.lang.String)(https://developer.android.com/reference/java/lang/String oid) ` Gets the DER-encoded OCTET string for the extension value (*extnValue* ) identified by the passed-in `oid` String. | | ` abstract https://developer.android.com/reference/java/util/Set<https://developer.android.com/reference/java/lang/String>` | ` https://developer.android.com/reference/java/security/cert/X509Extension#getNonCriticalExtensionOIDs()() ` Gets a Set of the OID strings for the extension(s) marked NON-CRITICAL in the certificate/CRL managed by the object implementing this interface. | | ` abstract boolean` | ` https://developer.android.com/reference/java/security/cert/X509Extension#hasUnsupportedCriticalExtension()() ` Check if there is a critical extension that is not supported. | ||

## Protected constructors

### X509CRL

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

```
protected X509CRL ()
```

Constructor for X.509 CRLs.

<br />

## Public methods

### equals

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

```
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.

<br />

| Parameters ||
|---|---|
| `other` | `Object`: the object to test for equality with this CRL. <br /> |

| Returns ||
|---|---|
| `boolean` | true iff the encoded forms of the two CRLs match, false otherwise. <br /> |

### getEncoded

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

```
public abstract byte[] getEncoded ()
```

Returns the ASN.1 DER-encoded form of this CRL.

<br />

| Returns ||
|---|---|
| `byte[]` | the encoded form of this certificate <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/security/cert/CRLException` | if an encoding error occurs. |

### getIssuerDN

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

```
public abstract Principal getIssuerDN ()
```

**Denigrated** , replaced by [getIssuerX500Principal()](https://developer.android.com/reference/java/security/cert/X509CRL#getIssuerX500Principal()). This method returns the `issuer`
as an implementation specific Principal object, which should not be
relied upon by portable code.


Gets the `issuer` (issuer distinguished name) value from
the CRL. The issuer name identifies the entity that signed (and
issued) the CRL.

The issuer name field contains an
X.500 distinguished name (DN).
The ASN.1 definition for this is:

```
issuer    Name

Name ::= CHOICE { RDNSequence }
RDNSequence ::= SEQUENCE OF RelativeDistinguishedName
RelativeDistinguishedName ::=
    SET OF AttributeValueAssertion

AttributeValueAssertion ::= SEQUENCE {
                              AttributeType,
                              AttributeValue }
AttributeType ::= OBJECT IDENTIFIER
AttributeValue ::= ANY
```
The `Name` describes a hierarchical name composed of attributes, such as country name, and corresponding values, such as US. The type of the `AttributeValue` component is determined by the `AttributeType`; in general it will be a `directoryString`. A `directoryString` is usually one of `PrintableString`, `TeletexString` or `UniversalString`.

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/security/Principal` | a Principal whose name is the issuer distinguished name. <br /> |

### getIssuerX500Principal

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

```
public X500Principal getIssuerX500Principal ()
```

Returns the issuer (issuer distinguished name) value from the
CRL as an `X500Principal`.


It is recommended that subclasses override this method.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/javax/security/auth/x500/X500Principal` | an `X500Principal` representing the issuer distinguished name <br /> |

### getNextUpdate

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

```
public abstract Date getNextUpdate ()
```

Gets the `nextUpdate` date from the CRL.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/Date` | the `nextUpdate` date from the CRL, or null if not present. <br /> |

### getRevokedCertificate

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

```
public X509CRLEntry getRevokedCertificate (X509Certificate certificate)
```

Get the CRL entry, if any, for the given certificate.

This method can be used to lookup CRL entries in indirect CRLs,
that means CRLs that contain entries from issuers other than the CRL
issuer. The default implementation will only return entries for
certificates issued by the CRL issuer. Subclasses that wish to
support indirect CRLs should override this method.

<br />

| Parameters ||
|---|---|
| `certificate` | `X509Certificate`: the certificate for which a CRL entry is to be looked up <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/security/cert/X509CRLEntry` | the entry for the given certificate, or null if no such entry exists in this CRL. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/NullPointerException` | if certificate is null |

### getRevokedCertificate

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

```
public abstract X509CRLEntry getRevokedCertificate (BigInteger serialNumber)
```

Gets the CRL entry, if any, with the given certificate serialNumber.

<br />

| Parameters ||
|---|---|
| `serialNumber` | `BigInteger`: the serial number of the certificate for which a CRL entry is to be looked up <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/security/cert/X509CRLEntry` | the entry with the given serial number, or null if no such entry exists in this CRL. <br /> |

**See also:**

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

### getRevokedCertificates

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

```
public abstract Set<? extends X509CRLEntry> getRevokedCertificates ()
```

Gets all the entries from this CRL.
This returns a Set of X509CRLEntry objects.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/Set<? extends https://developer.android.com/reference/java/security/cert/X509CRLEntry>` | all the entries or null if there are none present. <br /> |

**See also:**

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

### getSigAlgName

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

```
public abstract String getSigAlgName ()
```

Gets the signature algorithm name for the CRL
signature algorithm. An example is the string "SHA256withRSA".
The ASN.1 definition for this is:

```
signatureAlgorithm   AlgorithmIdentifier

AlgorithmIdentifier  ::=  SEQUENCE  {
    algorithm               OBJECT IDENTIFIER,
    parameters              ANY DEFINED BY algorithm OPTIONAL  }
                            -- contains a value of the type
                            -- registered for use with the
                            -- algorithm object identifier value
```

The algorithm name is determined from the `algorithm`
OID string.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | the signature algorithm name. <br /> |

### getSigAlgOID

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

```
public abstract String getSigAlgOID ()
```

Gets the signature algorithm OID string from the CRL.
An OID is represented by a set of nonnegative whole numbers separated
by periods.
For example, the string "1.2.840.10040.4.3" identifies the SHA-1
with DSA signature algorithm defined in
[RFC 3279: Algorithms and
Identifiers for the Internet X.509 Public Key Infrastructure Certificate
and CRL Profile](http://www.ietf.org/rfc/rfc3279.txt).

See `https://developer.android.com/reference/java/security/cert/X509CRL#getSigAlgName()` for
relevant ASN.1 definitions.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | the signature algorithm OID string. <br /> |

### getSigAlgParams

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

```
public abstract byte[] getSigAlgParams ()
```

Gets the DER-encoded signature algorithm parameters from this
CRL's signature algorithm. In most cases, the signature
algorithm parameters are null; the parameters are usually
supplied with the public key.
If access to individual parameter values is needed then use
`https://developer.android.com/reference/java/security/AlgorithmParameters`
and instantiate with the name returned by
`https://developer.android.com/reference/java/security/cert/X509CRL#getSigAlgName()`.

See `https://developer.android.com/reference/java/security/cert/X509CRL#getSigAlgName()` for
relevant ASN.1 definitions.

<br />

| Returns ||
|---|---|
| `byte[]` | the DER-encoded signature algorithm parameters, or null if no parameters are present. <br /> |

### getSignature

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

```
public abstract byte[] getSignature ()
```

Gets the `signature` value (the raw signature bits) from
the CRL.
The ASN.1 definition for this is:

```
signature     BIT STRING
```

<br />

<br />

| Returns ||
|---|---|
| `byte[]` | the signature. <br /> |

### getTBSCertList

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

```
public abstract byte[] getTBSCertList ()
```

Gets the DER-encoded CRL information, the
`tbsCertList` from this CRL.
This can be used to verify the signature independently.

<br />

| Returns ||
|---|---|
| `byte[]` | the DER-encoded CRL information. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/security/cert/CRLException` | if an encoding error occurs. |

### getThisUpdate

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

```
public abstract Date getThisUpdate ()
```

Gets the `thisUpdate` date from the CRL.
The ASN.1 definition for this is:

```
thisUpdate   ChoiceOfTime
ChoiceOfTime ::= CHOICE {
    utcTime        UTCTime,
    generalTime    GeneralizedTime }
```

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/util/Date` | the `thisUpdate` date from the CRL. <br /> |

### getVersion

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

```
public abstract int getVersion ()
```

Gets the `version` (version number) value from the CRL.
The ASN.1 definition for this is:

```
version    Version OPTIONAL,
            -- if present, must be v2

Version  ::=  INTEGER  {  v1(0), v2(1), v3(2)  }
            -- v3 does not apply to CRLs but appears for consistency
            -- with definition of Version for certs
```

<br />

<br />

| Returns ||
|---|---|
| `int` | the version number, i.e. 1 or 2. <br /> |

### hashCode

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

```
public int hashCode ()
```

Returns a hashcode value for this CRL from its
encoded form.

<br />

| Returns ||
|---|---|
| `int` | the hashcode value. <br /> |

### verify

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

```
public void verify (PublicKey key, 
                Provider sigProvider)
```

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.

<br />

| Parameters ||
|---|---|
| `key` | `PublicKey`: the PublicKey used to carry out the verification. <br /> |
| `sigProvider` | `Provider`: the signature provider. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/security/InvalidKeyException` | on incorrect key. |
| `https://developer.android.com/reference/java/security/NoSuchAlgorithmException` | on unsupported signature algorithms. |
| `https://developer.android.com/reference/java/security/SignatureException` | on signature errors. |
| `https://developer.android.com/reference/java/security/cert/CRLException` | on encoding errors. |

### verify

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

```
public abstract void verify (PublicKey key)
```

Verifies that this CRL was signed using the
private key that corresponds to the given public key.

<br />

| Parameters ||
|---|---|
| `key` | `PublicKey`: the PublicKey used to carry out the verification. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/security/InvalidKeyException` | on incorrect key. |
| `https://developer.android.com/reference/java/security/NoSuchAlgorithmException` | on unsupported signature algorithms. |
| `https://developer.android.com/reference/java/security/NoSuchProviderException` | if there's no default provider. |
| `https://developer.android.com/reference/java/security/SignatureException` | on signature errors. |
| `https://developer.android.com/reference/java/security/cert/CRLException` | on encoding errors. |

### verify

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

```
public abstract void verify (PublicKey key, 
                String sigProvider)
```

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.

<br />

| Parameters ||
|---|---|
| `key` | `PublicKey`: the PublicKey used to carry out the verification. <br /> |
| `sigProvider` | `String`: the name of the signature provider. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/security/InvalidKeyException` | on incorrect key. |
| `https://developer.android.com/reference/java/security/NoSuchAlgorithmException` | on unsupported signature algorithms. |
| `https://developer.android.com/reference/java/security/NoSuchProviderException` | on incorrect provider. |
| `https://developer.android.com/reference/java/security/SignatureException` | on signature errors. |
| `https://developer.android.com/reference/java/security/cert/CRLException` | on encoding errors. |