com.entrust.toolkit.x509.testlets
Class KeyUsageCertTestlet
java.lang.Object
|
+--com.entrust.toolkit.x509.testlets.KeyUsageCertTestlet
- public class KeyUsageCertTestlet
- extends java.lang.Object
- implements CertTestlet
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
KeyUsageCertTestlet
public KeyUsageCertTestlet()
init
public void init(X509Certificate[] chain,
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