# X509CRLEntry

public abstract class **X509CRLEntry** extends [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)  
implements [X509Extension](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/X509Extension.html) <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://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/X509CRL.html`
- `https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/X509Extension.html`

### Public Constructor Summary

|---|---|
|   | [X509CRLEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/X509CRLEntry.html#X509CRLEntry())() |

### Public Method Summary

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

### Inherited Method Summary

From class [java.lang.Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html)

|---|---|
| [Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) | [clone](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#clone())() Creates and returns a copy of this `Object`. |
| boolean | [equals](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#equals(java.lang.Object))([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) obj) Compares this instance with the specified object and indicates if they are equal. |
| void | [finalize](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#finalize())() Invoked when the garbage collector has detected that this instance is no longer reachable. |
| final [Class](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html)\<?\> | [getClass](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#getClass())() Returns the unique instance of `https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Class.html` that represents this object's class. |
| int | [hashCode](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#hashCode())() Returns an integer hash code for this object. |
| final void | [notify](https://developers.google.com/j2objc/javadoc/jre/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. |
| final void | [notifyAll](https://developers.google.com/j2objc/javadoc/jre/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. |
| [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) | [toString](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#toString())() Returns a string containing a concise, human-readable description of this object. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/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. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/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. |
| final void | [wait](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html#wait())() Causes the calling thread to wait until another thread calls the `notify()` or `notifyAll()` method of this object. |

From interface [java.security.cert.X509Extension](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/X509Extension.html)

|---|---|
| abstract [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)\> | [getCriticalExtensionOIDs](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/X509Extension.html#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\[\] | [getExtensionValue](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/X509Extension.html#getExtensionValue(java.lang.String))([String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html) oid) Gets the DER-encoded OCTET string for the extension value (*extnValue* ) identified by the passed-in `oid` String. |
| abstract [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)\> | [getNonCriticalExtensionOIDs](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/X509Extension.html#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 | [hasUnsupportedCriticalExtension](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/X509Extension.html#hasUnsupportedCriticalExtension())() Check if there is a critical extension that is not supported. |

## Public Constructors

#### public
**X509CRLEntry**
()

<br />

## Public Methods

#### public boolean
**equals**
([Object](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/Object.html) 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.

##### Parameters

| other | the object to test for equality with this CRL entry. |
|---|---|

##### Returns

- true iff the encoded forms of the two CRL entries match, false otherwise.

#### public [X500Principal](https://developers.google.com/j2objc/javadoc/jre/reference/javax/security/auth/x500/X500Principal.html)
**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.

##### Returns

- the issuer of the X509Certificate described by this entry or null if it is issued by the CRL issuer.

#### public abstract byte\[\]
**getEncoded**
()

Returns the ASN.1 DER-encoded form of this CRL Entry,
that is the inner SEQUENCE.

##### Returns

- the encoded form of this certificate

##### Throws

| [CRLException](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/CRLException.html) | if an encoding error occurs. |
|---|---|

#### public abstract [Date](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Date.html)
**getRevocationDate**
()

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

##### Returns

- the revocation date.

#### public [CRLReason](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/cert/CRLReason.html)
**getRevocationReason**
()

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

##### Returns

- the reason the certificate has been revoked, or `null` if this CRL entry does not have a Reason Code extension

#### public abstract BigInteger
**getSerialNumber**
()

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

##### Returns

- the serial number.

#### public abstract boolean
**hasExtensions**
()

Returns true if this CRL entry has extensions.

##### Returns

- true if this entry has extensions, false otherwise.

#### public int
**hashCode**
()

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

##### Returns

- the hashcode value.

#### public abstract [String](https://developers.google.com/j2objc/javadoc/jre/reference/java/lang/String.html)
**toString**
()

Returns a string representation of this CRL entry.

##### Returns

- a string representation of this CRL entry.