org.glite.security.util
Class RevocationChecker

java.lang.Object
  extended by org.glite.security.util.RevocationChecker
Direct Known Subclasses:
FileCRLChecker

public abstract class RevocationChecker
extends java.lang.Object

Author:
hahkala

Constructor Summary
RevocationChecker(java.security.cert.X509Certificate caCert, java.lang.String caHash, int caNumber, CaseInsensitiveProperties props)
           
 
Method Summary
abstract  void check(java.security.cert.X509Certificate cert)
          Checks the certificate for revocation.
abstract  void checkUpdate()
          If the implementation is file based for example, this will check whether the file has changed and if yes, reloads it.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RevocationChecker

public RevocationChecker(java.security.cert.X509Certificate caCert,
                         java.lang.String caHash,
                         int caNumber,
                         CaseInsensitiveProperties props)
Parameters:
caCert -
caHash -
caNumber -
props -
Method Detail

check

public abstract void check(java.security.cert.X509Certificate cert)
                    throws java.io.IOException,
                           java.security.cert.CertificateException,
                           CertificateRevokedException
Checks the certificate for revocation.

Parameters:
cert - The certificate to check.
Throws:
java.io.IOException - in case the CRL reading or info loading fails.
java.security.cert.CertificateException - in case CRL is malformed, certificate is malformed or revocation check fails.
CertificateRevokedException

checkUpdate

public abstract void checkUpdate()
                          throws java.io.IOException,
                                 java.security.cert.CertificateException
If the implementation is file based for example, this will check whether the file has changed and if yes, reloads it.

Throws:
java.io.IOException - if file or network reading fails.
java.security.cert.CertificateException - if e.g. CRL parsing fails.