CRLReason

public final enum CRLReason
extends Enum<CRLReason>

java.lang.Object
   ↳ java.lang.Enum<java.security.cert.CRLReason>
     ↳ java.security.cert.CRLReason


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.

Summary

Enum values

CRLReason  AA_COMPROMISE

This reason indicates that it is known or suspected that the certificate subject's private key has been compromised. 

CRLReason  AFFILIATION_CHANGED

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

CRLReason  CA_COMPROMISE

This reason indicates that it is known or suspected that the certificate subject's private key has been compromised. 

CRLReason  CERTIFICATE_HOLD

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

CRLReason  CESSATION_OF_OPERATION

This reason indicates that the certificate is no longer needed. 

CRLReason  KEY_COMPROMISE

This reason indicates that it is known or suspected that the certificate subject's private key has been compromised. 

CRLReason  PRIVILEGE_WITHDRAWN

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

CRLReason  REMOVE_FROM_CRL

This reason indicates that the certificate was previously on hold and should be removed from the CRL. 

CRLReason  SUPERSEDED

This reason indicates that the certificate has been superseded. 

CRLReason  UNSPECIFIED

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

CRLReason  UNUSED

Unused reason. 

Public methods

static CRLReason valueOf(String name)
static final CRLReason[] values()

Inherited methods

final Object clone()

Throws CloneNotSupportedException.

final int compareTo(CRLReason o)

Compares this enum with the specified object for order.

final boolean equals(Object other)

Returns true if the specified object is equal to this enum constant.

final void finalize()

enum classes cannot have finalize methods.

final Class<CRLReason> getDeclaringClass()

Returns the Class object corresponding to this enum constant's enum type.

final int hashCode()

Returns a hash code for this enum constant.

final String name()

Returns the name of this enum constant, exactly as declared in its enum declaration.

final int ordinal()

Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero).

String toString()

Returns the name of this enum constant, as contained in the declaration.

static <T extends Enum<T>> T valueOf(Class<T> enumClass, String name)

Returns the enum constant of the specified enum class with the specified name.

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(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 wait(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 wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

abstract int compareTo(CRLReason o)

Compares this object with the specified object for order.

Enum values

AA_COMPROMISE

Added in API level 24
public static final CRLReason AA_COMPROMISE

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
public static final CRLReason AFFILIATION_CHANGED

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

CA_COMPROMISE

Added in API level 24
public static final CRLReason CA_COMPROMISE

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
public static final CRLReason CERTIFICATE_HOLD

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

CESSATION_OF_OPERATION

Added in API level 24
public static final CRLReason CESSATION_OF_OPERATION

This reason indicates that the certificate is no longer needed.

KEY_COMPROMISE

Added in API level 24
public static final CRLReason KEY_COMPROMISE

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
public static final CRLReason PRIVILEGE_WITHDRAWN

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

REMOVE_FROM_CRL

Added in API level 24
public static final CRLReason REMOVE_FROM_CRL

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
public static final CRLReason SUPERSEDED

This reason indicates that the certificate has been superseded.

UNSPECIFIED

Added in API level 24
public static final CRLReason UNSPECIFIED

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

UNUSED

Added in API level 24
public static final CRLReason UNUSED

Unused reason.

Public methods

valueOf

public static CRLReason valueOf (String name)

Parameters
name String

Returns
CRLReason

values

public static final CRLReason[] values ()

Returns
CRLReason[]