java.security.cert
Class CRL

java.lang.Object
  extended by java.security.cert.CRL
Direct Known Subclasses:
X509CRL

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
 String getType()
          Returns the CRL type.
abstract  boolean isRevoked(Certificate cert)
          Determines whether or not the specified Certificate is revoked.
abstract  String toString()
          Returns a string representing the CRL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

toString

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

Overrides:
toString in class Object
Returns:
a string representing the CRL.
See Also:
Object.getClass(), Object.hashCode(), Class.getName(), Integer.toHexString(int)

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.