FileDocCategorySizeDatePackage
SSLKeyManagerFactory.javaAPI DocExample785Mon Jan 15 12:18:14 GMT 2001javasec.samples.ch14

SSLKeyManagerFactory

public class SSLKeyManagerFactory extends KeyManagerFactorySpi

Fields Summary
char[]
pw
KeyStore
ks
String
alias
Constructors Summary
public SSLKeyManagerFactory()

        alias = System.getProperty("xyz.aliasName");
        if (alias == null)
            throw new IllegalArgumentException("Must specify alias property");
    
Methods Summary
protected javax.net.ssl.KeyManager[]engineGetKeyManagers()

        SSLKeyManager[] km = new SSLKeyManager[1];
        km[0] = new SSLKeyManager(ks, alias, pw);
        return km;
    
protected voidengineInit(java.security.KeyStore ks, char[] pw)

        this.ks = ks;
        this.pw = new char[pw.length];
        System.arraycopy(pw, 0, this.pw, 0, pw.length);