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.
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
NullCertTestlet
public NullCertTestlet()
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 validateddataSet - 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 certificatedataSet - 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 validatedataSet - 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