public class BasicConstraintsCertTestlet extends java.lang.Object implements CertTestlet
There should be no need for toolkit users to use this class directly.
| Constructor and Description |
|---|
BasicConstraintsCertTestlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
init(X509Certificate[] certChain,
TestletDataSet dataSet)
Initialize the testlet with the given chain.
|
void |
notify(V3Extension extension,
TestletDataSet dataSet)
Notify the testlet of the extension that is about to be validated.
|
void |
reset(TestletDataSet dataSet)
Part of the
ExtensionTestlet interface, has no effect. |
void |
validate(X509Certificate cert,
TestletDataSet dataSet)
Validate that the given certificate does not invalidate the certificate
chain.
|
public void init(X509Certificate[] certChain, TestletDataSet dataSet)
init in interface CertTestletcertChain - the certificate chain to be validated.dataSet - the TestletDataSet to use for the chain validation.public void notify(V3Extension extension, TestletDataSet dataSet)
notify in interface ExtensionTestletextension - The extension to be validated. This will be an instance of
BasicConstraints.dataSet - the TestletDataSet to use for the chain validation.BasicConstraintspublic void validate(X509Certificate cert, TestletDataSet dataSet) throws ExtensionException
Note: this method must be called for every certificate in the chain being validated, regardless of whether or not it contains the BasicConstraints extension.
validate in interface CertTestletcert - The current certificate being processed.dataSet - the TestletDataSet to use for the chain validation.ExtensionException - if there is a problem processing the extension, or if the
given certificate causes the path to be invalid according to
the values in the extension.public void reset(TestletDataSet dataSet)
ExtensionTestlet interface, has no effect.reset in interface ExtensionTestletdataSet - ignored.