# CRLReason

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

# CRLReason

```
class CRLReason
```

|---|---|--------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                  |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\<[java.security.cert.CRLReason](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#)\> ||
|   | ↳ | [java.security.cert.CRLReason](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#) |

|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [CRLReason.AA_COMPROMISE](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:AA_COMPROMISE), [CRLReason.AFFILIATION_CHANGED](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:AFFILIATION_CHANGED), [CRLReason.CA_COMPROMISE](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:CA_COMPROMISE), [CRLReason.CERTIFICATE_HOLD](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:CERTIFICATE_HOLD), [CRLReason.CESSATION_OF_OPERATION](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:CESSATION_OF_OPERATION), [CRLReason.KEY_COMPROMISE](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:KEY_COMPROMISE), [CRLReason.PRIVILEGE_WITHDRAWN](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:PRIVILEGE_WITHDRAWN), [CRLReason.REMOVE_FROM_CRL](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:REMOVE_FROM_CRL), [CRLReason.SUPERSEDED](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:SUPERSEDED), [CRLReason.UNSPECIFIED](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:UNSPECIFIED), [CRLReason.UNUSED](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:UNUSED) |---------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------| | [CRLReason.AA_COMPROMISE](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:AA_COMPROMISE)                   | This reason indicates that it is known or suspected that the certificate subject's private key has been compromised. | | [CRLReason.AFFILIATION_CHANGED](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:AFFILIATION_CHANGED)       | This reason indicates that the subject's name or other information has changed.                                      | | [CRLReason.CA_COMPROMISE](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:CA_COMPROMISE)                   | This reason indicates that it is known or suspected that the certificate subject's private key has been compromised. | | [CRLReason.CERTIFICATE_HOLD](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:CERTIFICATE_HOLD)             | This reason indicates that the certificate has been put on hold.                                                     | | [CRLReason.CESSATION_OF_OPERATION](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:CESSATION_OF_OPERATION) | This reason indicates that the certificate is no longer needed.                                                      | | [CRLReason.KEY_COMPROMISE](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:KEY_COMPROMISE)                 | This reason indicates that it is known or suspected that the certificate subject's private key has been compromised. | | [CRLReason.PRIVILEGE_WITHDRAWN](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:PRIVILEGE_WITHDRAWN)       | This reason indicates that the privileges granted to the subject of the certificate have been withdrawn.             | | [CRLReason.REMOVE_FROM_CRL](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:REMOVE_FROM_CRL)               | This reason indicates that the certificate was previously on hold and should be removed from the CRL.                | | [CRLReason.SUPERSEDED](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:SUPERSEDED)                         | This reason indicates that the certificate has been superseded.                                                      | | [CRLReason.UNSPECIFIED](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:UNSPECIFIED)                       | This reason indicates that it is unspecified as to why the certificate has been revoked.                             | | [CRLReason.UNUSED](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:UNUSED)                                 | Unused reason.                                                                                                       | |

The CRLReason enumeration specifies the reason that a certificate is revoked, as defined in [RFC 5280: Internet X.509 Public Key Infrastructure Certificate and CRL Profile](http://tools.ietf.org/html/rfc5280).

## Summary

|                                                                                                                   Enum values                                                                                                                   ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [AA_COMPROMISE](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:AA_COMPROMISE) This reason indicates that it is known or suspected that the certificate subject's private key has been compromised.   |
| [AFFILIATION_CHANGED](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:AFFILIATION_CHANGED) This reason indicates that the subject's name or other information has changed.                            |
| [CA_COMPROMISE](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:CA_COMPROMISE) This reason indicates that it is known or suspected that the certificate subject's private key has been compromised.   |
| [CERTIFICATE_HOLD](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:CERTIFICATE_HOLD) This reason indicates that the certificate has been put on hold.                                                 |
| [CESSATION_OF_OPERATION](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:CESSATION_OF_OPERATION) This reason indicates that the certificate is no longer needed.                                      |
| [KEY_COMPROMISE](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:KEY_COMPROMISE) This reason indicates that it is known or suspected that the certificate subject's private key has been compromised. |
| [PRIVILEGE_WITHDRAWN](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:PRIVILEGE_WITHDRAWN) This reason indicates that the privileges granted to the subject of the certificate have been withdrawn.   |
| [REMOVE_FROM_CRL](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:REMOVE_FROM_CRL) This reason indicates that the certificate was previously on hold and should be removed from the CRL.              |
| [SUPERSEDED](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:SUPERSEDED) This reason indicates that the certificate has been superseded.                                                              |
| [UNSPECIFIED](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:UNSPECIFIED) This reason indicates that it is unspecified as to why the certificate has been revoked.                                   |
| [UNUSED](https://developer.android.com/reference/kotlin/java/security/cert/CRLReason#ENUM_VALUE:UNUSED) Unused reason.                                                                                                                       |

## Enum values

### AA_COMPROMISE

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

```
enum val AA_COMPROMISE : CRLReason
```

This reason indicates that it is known or suspected that the certificate subject's private key has been compromised. It applies to authority attribute (AA) certificates only.  

### AFFILIATION_CHANGED

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

```
enum val AFFILIATION_CHANGED : CRLReason
```

This reason indicates that the subject's name or other information has changed.  

### CA_COMPROMISE

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

```
enum val CA_COMPROMISE : CRLReason
```

This reason indicates that it is known or suspected that the certificate subject's private key has been compromised. It applies to certificate authority (CA) certificates only.  

### CERTIFICATE_HOLD

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

```
enum val CERTIFICATE_HOLD : CRLReason
```

This reason indicates that the certificate has been put on hold.  

### CESSATION_OF_OPERATION

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

```
enum val CESSATION_OF_OPERATION : CRLReason
```

This reason indicates that the certificate is no longer needed.  

### KEY_COMPROMISE

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

```
enum val KEY_COMPROMISE : CRLReason
```

This reason indicates that it is known or suspected that the certificate subject's private key has been compromised. It applies to end-entity certificates only.  

### PRIVILEGE_WITHDRAWN

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

```
enum val PRIVILEGE_WITHDRAWN : CRLReason
```

This reason indicates that the privileges granted to the subject of the certificate have been withdrawn.  

### REMOVE_FROM_CRL

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

```
enum val REMOVE_FROM_CRL : CRLReason
```

This reason indicates that the certificate was previously on hold and should be removed from the CRL. It is for use with delta CRLs.  

### SUPERSEDED

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

```
enum val SUPERSEDED : CRLReason
```

This reason indicates that the certificate has been superseded.  

### UNSPECIFIED

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

```
enum val UNSPECIFIED : CRLReason
```

This reason indicates that it is unspecified as to why the certificate has been revoked.  

### UNUSED

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

```
enum val UNUSED : CRLReason
```

Unused reason.