java.security.cert

Class CRL

public abstract class CRL extends Object

Certificate Revocation List class for managing CRLs that have different formats but the same general use. They all serve as lists of revoked certificates and can be queried for a given certificate. Specialized CRLs extend this class.

Since: JDK 1.2

Constructor Summary
protected CRL(String type)
Creates a new CRL for the specified type.
Method Summary
StringgetType()
Returns the CRL type.
abstract booleanisRevoked(Certificate cert)
Determines whether or not the specified Certificate is revoked.
abstract StringtoString()
Returns a string representing the CRL.

Constructor Detail

CRL

protected CRL(String type)
Creates a new CRL for the specified type. An example is "X.509".

Parameters: type the standard name for the CRL type.

Method Detail

getType

public final String getType()
Returns the CRL type.

Returns: a string representing the CRL type

isRevoked

public abstract boolean isRevoked(Certificate cert)
Determines whether or not the specified Certificate is revoked.

Parameters: cert A certificate to check if it is revoked

Returns: true if the certificate is revoked, false otherwise.

toString

public abstract String toString()
Returns a string representing the CRL.

Returns: a string representing the CRL.