1 module hunt.security.cert.CRLReason; 2 3 4 /** 5 * The CRLReason enumeration specifies the reason that a certificate 6 * is revoked, as defined in <a href="http://www.ietf.org/rfc/rfc3280.txt"> 7 * RFC 3280: Internet X.509 Public Key Infrastructure Certificate and CRL 8 * Profile</a>. 9 * 10 * @author Sean Mullan 11 * @since 1.7 12 * @see X509CRLEntry#getRevocationReason 13 * @see CertificateRevokedException#getRevocationReason 14 */ 15 enum CRLReason { 16 /** 17 * This reason indicates that it is unspecified as to why the 18 * certificate has been revoked. 19 */ 20 UNSPECIFIED, 21 22 /** 23 * This reason indicates that it is known or suspected that the 24 * certificate subject's private key has been compromised. It applies 25 * to end-entity certificates only. 26 */ 27 KEY_COMPROMISE, 28 29 /** 30 * This reason indicates that it is known or suspected that the 31 * certificate subject's private key has been compromised. It applies 32 * to certificate authority (CA) certificates only. 33 */ 34 CA_COMPROMISE, 35 36 /** 37 * This reason indicates that the subject's name or other information 38 * has changed. 39 */ 40 AFFILIATION_CHANGED, 41 42 /** 43 * This reason indicates that the certificate has been superseded. 44 */ 45 SUPERSEDED, 46 47 /** 48 * This reason indicates that the certificate is no longer needed. 49 */ 50 CESSATION_OF_OPERATION, 51 52 /** 53 * This reason indicates that the certificate has been put on hold. 54 */ 55 CERTIFICATE_HOLD, 56 57 /** 58 * Unused reason. 59 */ 60 UNUSED, 61 62 /** 63 * This reason indicates that the certificate was previously on hold 64 * and should be removed from the CRL. It is for use with delta CRLs. 65 */ 66 REMOVE_FROM_CRL, 67 68 /** 69 * This reason indicates that the privileges granted to the subject of 70 * the certificate have been withdrawn. 71 */ 72 PRIVILEGE_WITHDRAWN, 73 74 /** 75 * This reason indicates that it is known or suspected that the 76 * certificate subject's private key has been compromised. It applies 77 * to authority attribute (AA) certificates only. 78 */ 79 AA_COMPROMISE 80 }