javax.net.ssl

Class KeyManagerFactorySpi

Known Direct Subclasses:
X509KeyManagerFactory

public abstract class KeyManagerFactorySpi
extends java.lang.Object

The Service Provider Interface (SPI) for key manager factories.
Author:
Casey Marshall (rsdio@metastatic.org)

Constructor Summary

KeyManagerFactorySpi()

Method Summary

protected abstract KeyManager[]
engineGetKeyManagers()
Engine method for retrieving this factory's key managers.
protected abstract void
engineInit(KeyStore store, char[] passwd)
Engine method for initializing this factory with a key store and a password for private keys.
protected abstract void
engineInit(ManagerFactoryParameters params)
Engine method for initializing this factory with some algorithm-specific parameters.

Constructor Details

KeyManagerFactorySpi

public KeyManagerFactorySpi()

Method Details

engineGetKeyManagers

protected abstract KeyManager[] engineGetKeyManagers()
Engine method for retrieving this factory's key managers.
Returns:
The key managers.

engineInit

protected abstract void engineInit(KeyStore store,
                                   char[] passwd)
            throws KeyStoreException,
                   NoSuchAlgorithmException,
                   UnrecoverableKeyException
Engine method for initializing this factory with a key store and a password for private keys. Either parameter may be null, in which case some default parameters (possibly derived from system properties) should be used.
Parameters:
store - The key store.
passwd - The private key password.

engineInit

protected abstract void engineInit(ManagerFactoryParameters params)
            throws InvalidAlgorithmParameterException
Engine method for initializing this factory with some algorithm-specific parameters.
Parameters:
params - The factory parameters.