FileDocCategorySizeDatePackage
MyKeyManagerFactorySpi.javaAPI DocAndroid 1.5 API2941Wed May 06 22:41:06 BST 2009org.apache.harmony.xnet.tests.support

MyKeyManagerFactorySpi

public class MyKeyManagerFactorySpi extends KeyManagerFactorySpi
Class for verification KeyManagerFactorySpi and KeyManagerFactory functionality

Fields Summary
Constructors Summary
Methods Summary
protected javax.net.ssl.KeyManager[]engineGetKeyManagers()

        return null;
    
protected voidengineInit(java.security.KeyStore ks, char[] password)

        if (password == null) {
            throw new KeyStoreException("Incorrect password");            
        }
        if (ks == null) {
            throw new UnrecoverableKeyException("Incorrect keystore");
        }
    
protected voidengineInit(javax.net.ssl.ManagerFactoryParameters spec)

        if (spec == null) {
            throw new InvalidAlgorithmParameterException("Incorrect parameter");
        }
        if (spec instanceof Parameters) {
            try {
                engineInit(((Parameters)spec).getKeyStore(),
                        ((Parameters)spec).getPassword());
            } catch (Exception e) {
                throw new InvalidAlgorithmParameterException(e.toString()); 
            }
        } else {
            throw new InvalidAlgorithmParameterException("Invalid parameter");
        }