public class OldBasicConstraintsCertTestlet extends java.lang.Object implements CertTestlet
| Constructor and Description |
|---|
OldBasicConstraintsCertTestlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(X509Certificate[] chain,
TestletDataSet dataSet)
During the initialization phase, we add a BasicConstraintsTestletData
object to the TestletDataSet, if it doesn't already exist.
|
void |
notify(V3Extension extension,
TestletDataSet dataSet)
In the notify phase, we set the CA flag in the TestletData, so that
other extension testers can be aware that we are dealing with a CA
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.
|
public void init(X509Certificate[] chain, TestletDataSet dataSet)
init in interface CertTestletchain - the certificate chain to be validateddataSet - a set in which the testlet can store temporary data for validationpublic void notify(V3Extension extension, TestletDataSet dataSet)
notify in interface ExtensionTestletextension - the extension found in the certificatedataSet - a set in which the testlet can store temporary data for validationpublic void validate(X509Certificate cert, TestletDataSet dataSet) throws ExtensionException
CertTestletvalidate in interface CertTestletcert - the certificate to validatedataSet - a set in which the testlet can store temporary data for validationExtensionException - thrown if validation failspublic void reset(TestletDataSet dataSet)
ExtensionTestletreset in interface ExtensionTestletdataSet - a set in which the testlet can store temporary data for validation