com.dstc.security.ssl
Class CertChecker

java.lang.Object
  |
  +--com.dstc.security.ssl.CertChecker
Direct Known Subclasses:
OptimisticCRLChecker

public abstract class CertChecker
extends Object

Abstract callback for checking each certificate in a cert path. Can be used to implement X.509 CRLs, OCSP etcetera.

See Also:
OptimisticCRLChecker

Constructor Summary
CertChecker()
           
 
Method Summary
abstract  void checkCert(X509Certificate cert, Date date)
          Check the validity of one certificate at a given point in time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CertChecker

public CertChecker()
Method Detail

checkCert

public abstract void checkCert(X509Certificate cert,
                               Date date)
                        throws CertificateException
Check the validity of one certificate at a given point in time. Returns void for success, throws an exception for failure.

This method may be invoked concurrently from multiple threads, so its implementation should be multithread-safe; this is straightforward if it maintains no state, i.e. has no mutable instance variables (or mutable objects reached from those instance variables).

Parameters:
cert - the X509Certificate to check
date - the Date at which the certificate's validity should be checked
Throws:
CertificateException - if the certificate is deemed invalid at the specified time