com.entrust.toolkit.x509.testlets
Class NullCertTestlet

java.lang.Object
  |
  +--com.entrust.toolkit.x509.testlets.NullCertTestlet

public class NullCertTestlet
extends java.lang.Object
implements CertTestlet

This class implements the CertTestlet interface, and does nothing for any of the methods. It can be subclassed and overridden to selectively implement only one or two of the CertTestlet methods.


Constructor Summary
NullCertTestlet()
           
 
Method Summary
 void init(X509Certificate[] certificateSet, TestletDataSet dataSet)
           Initializes the certificate extension testlet when a new certificate chain is to be validated.
 void notify(V3Extension extension, TestletDataSet dataSet)
           Notifies the testlet that the extension for which the testlet is registered has been found in the certificate.
 void reset(TestletDataSet dataSet)
           Resets the temporary validation data.
 void validate(X509Certificate cert, TestletDataSet dataSet)
           Validates the certificate based on the certificate extensions found in this, or previous, certificates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullCertTestlet

public NullCertTestlet()
Method Detail

init

public void init(X509Certificate[] certificateSet,
                 TestletDataSet dataSet)
Description copied from interface: CertTestlet
Initializes the certificate extension testlet when a new certificate chain is to be validated.

Specified by:
init in interface CertTestlet
Tags copied from interface: CertTestlet
Parameters:
chain - the certificate chain to be validated
dataSet - a set in which the testlet can store temporary data for validation

notify

public void notify(V3Extension extension,
                   TestletDataSet dataSet)
Description copied from interface: CertTestlet
Notifies the testlet that the extension for which the testlet is registered has been found in the certificate.

Specified by:
notify in interface CertTestlet
Tags copied from interface: CertTestlet
Parameters:
extension - the extension found in the certificate
dataSet - a set in which the testlet can store temporary data for validation

validate

public void validate(X509Certificate cert,
                     TestletDataSet dataSet)
              throws ExtensionException
Description copied from interface: CertTestlet
Validates the certificate based on the certificate extensions found in this, or previous, certificates.
Specified by:
validate in interface CertTestlet
Tags copied from interface: CertTestlet
Parameters:
cert - the certificate to validate
dataSet - a set in which the testlet can store temporary data for validation
Throws:
ExtensionException - thrown if validation fails

reset

public void reset(TestletDataSet dataSet)
Description copied from interface: CertTestlet
Resets the temporary validation data.
Specified by:
reset in interface CertTestlet
Tags copied from interface: CertTestlet
Parameters:
dataSet - a set in which the testlet can store temporary data for validation