FileDocCategorySizeDatePackage
MyCertPathValidatorSpi.javaAPI DocAndroid 1.5 API1974Wed May 06 22:41:06 BST 2009org.apache.harmony.security.tests.support.cert

MyCertPathValidatorSpi

public class MyCertPathValidatorSpi extends CertPathValidatorSpi
Additional class for verification of CertPathValidatorSpi and CertPathValidator

Fields Summary
private int
sw
Constructors Summary
Methods Summary
public java.security.cert.CertPathValidatorResultengineValidate(java.security.cert.CertPath certPath, java.security.cert.CertPathParameters params)

       
               
             
        ++sw; 
        if (certPath == null) {
            if ((sw % 2) == 0) {
                throw new CertPathValidatorException("certPath null");
            }
        }
        if (params == null) {
            if ((sw % 3) == 0) {
                throw new InvalidAlgorithmParameterException("params null");
            }
        }
        return null;