public class NameConstraintsCertTestlet extends java.lang.Object implements CertTestlet
There should be no need for toolkit users to use this class directly.
| Constructor and Description |
|---|
NameConstraintsCertTestlet() |
| 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)
Resets the state of the testlet to prepare it for the next ceritifcate.
|
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
NameConstraints.dataSet - the TestletDataSet to use for the chain validation.NameConstraintspublic 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 NameConstraints 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 certificate, or if the
given certificate causes the path to be invalid.public void reset(TestletDataSet dataSet)
reset in interface ExtensionTestletdataSet - the TestletDataSet to use for the chain validation.