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

# X509CRLEntry


`
public


abstract
class
X509CRLEntry
`


`

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


`

`


implements

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


`

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

<br />

*** ** * ** ***

<br />

Abstract class for a revoked certificate in a CRL (Certificate
Revocation List).

The ASN.1 definition for *revokedCertificates* is:

```
revokedCertificates    SEQUENCE OF SEQUENCE  {
    userCertificate    CertificateSerialNumber,
    revocationDate     ChoiceOfTime,
    crlEntryExtensions Extensions OPTIONAL
                       -- if present, must be v2
}  OPTIONAL

CertificateSerialNumber  ::=  INTEGER

Extensions  ::=  SEQUENCE SIZE (1..MAX) OF Extension

Extension  ::=  SEQUENCE  {
    extnId        OBJECT IDENTIFIER,
    critical      BOOLEAN DEFAULT FALSE,
    extnValue     OCTET STRING
                  -- contains a DER encoding of a value
                  -- of the type registered for use with
                  -- the extnId object identifier value
}
```

<br />

**See also:**

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

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/java/security/cert/X509CRLEntry#X509CRLEntry()() ` |

| ### Public methods ||
|---|---|
| ` boolean` | ` https://developer.android.com/reference/java/security/cert/X509CRLEntry#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object other) ` Compares this CRL entry for equality with the given object. |
| ` https://developer.android.com/reference/javax/security/auth/x500/X500Principal` | ` https://developer.android.com/reference/java/security/cert/X509CRLEntry#getCertificateIssuer()() ` Get the issuer of the X509Certificate described by this entry. |
| ` abstract byte[]` | ` https://developer.android.com/reference/java/security/cert/X509CRLEntry#getEncoded()() ` Returns the ASN.1 DER-encoded form of this CRL Entry, that is the inner SEQUENCE. |
| ` abstract https://developer.android.com/reference/java/util/Date` | ` https://developer.android.com/reference/java/security/cert/X509CRLEntry#getRevocationDate()() ` Gets the revocation date from this X509CRLEntry, the *revocationDate*. |
| ` https://developer.android.com/reference/java/security/cert/CRLReason` | ` https://developer.android.com/reference/java/security/cert/X509CRLEntry#getRevocationReason()() ` Returns the reason the certificate has been revoked, as specified in the Reason Code extension of this CRL entry. |
| ` abstract https://developer.android.com/reference/java/math/BigInteger` | ` https://developer.android.com/reference/java/security/cert/X509CRLEntry#getSerialNumber()() ` Gets the serial number from this X509CRLEntry, the *userCertificate*. |
| ` abstract boolean` | ` https://developer.android.com/reference/java/security/cert/X509CRLEntry#hasExtensions()() ` Returns true if this CRL entry has extensions. |
| ` int` | ` https://developer.android.com/reference/java/security/cert/X509CRLEntry#hashCode()() ` Returns a hashcode value for this CRL entry from its encoded form. |
| ` abstract https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/security/cert/X509CRLEntry#toString()() ` Returns a string representation of this CRL entry. |

| ### 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*. | ||
| 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. | ||

## Public constructors

### X509CRLEntry

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

```
public X509CRLEntry ()
```

<br />

<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 entry for equality with the given
object. If the `other` object is an
`instanceof` `X509CRLEntry`, then
its encoded form (the inner SEQUENCE) is retrieved and compared
with the encoded form of this CRL entry.

<br />

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

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

### getCertificateIssuer

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

```
public X500Principal getCertificateIssuer ()
```

Get the issuer of the X509Certificate described by this entry. If
the certificate issuer is also the CRL issuer, this method returns
null.

This method is used with indirect CRLs. The default implementation
always returns null. Subclasses that wish to support indirect CRLs
should override it.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/javax/security/auth/x500/X500Principal` | the issuer of the X509Certificate described by this entry or null if it is issued by the CRL issuer. <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 Entry,
that is the inner SEQUENCE.

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

### getRevocationDate

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

```
public abstract Date getRevocationDate ()
```

Gets the revocation date from this X509CRLEntry,
the *revocationDate*.

<br />

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

### getRevocationReason

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

```
public CRLReason getRevocationReason ()
```

Returns the reason the certificate has been revoked, as specified
in the Reason Code extension of this CRL entry.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/security/cert/CRLReason` | the reason the certificate has been revoked, or `null` if this CRL entry does not have a Reason Code extension <br /> |

### getSerialNumber

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

```
public abstract BigInteger getSerialNumber ()
```

Gets the serial number from this X509CRLEntry,
the *userCertificate*.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/math/BigInteger` | the serial number. <br /> |

### hasExtensions

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

```
public abstract boolean hasExtensions ()
```

Returns true if this CRL entry has extensions.

<br />

| Returns ||
|---|---|
| `boolean` | true if this entry has extensions, false otherwise. <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 entry from its
encoded form.

<br />

| Returns ||
|---|---|
| `int` | the hashcode value. <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 entry.

<br />

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