public interface CertTestlet extends ExtensionTestlet
CertTestlet is the interface that every certificate extension
testlet must implement.
For each certificate chain that is validated, the init() method
is called once. For each certificate in the chain, the ExtensionTester
calls the methods notify, validate, and
reset in this order.
notify() is called only if the extension for which the testlet
is registered is found in the certificate.
The dataContainer passed to every method can be used to store
data that the certificate extension testlet uses to validate the
certificate.
| Modifier and Type | Method and Description |
|---|---|
void |
init(X509Certificate[] chain,
TestletDataSet dataSet)
Initializes the certificate extension testlet when a new certificate
chain is to be validated.
|
void |
validate(X509Certificate cert,
TestletDataSet dataSet)
Validates the certificate based on the certificate extensions found in
this, or previous, certificates.
|
notify, resetvoid init(X509Certificate[] chain, TestletDataSet dataSet)
chain - the certificate chain to be validateddataSet - a set in which the testlet can store temporary data for validationvoid validate(X509Certificate cert, TestletDataSet dataSet) throws ExtensionException
cert - the certificate to validatedataSet - a set in which the testlet can store temporary data for validationExtensionException - thrown if validation fails