javax.net.ssl

Class KeyManagerFactorySpi

public abstract class KeyManagerFactorySpi extends Object

The Service Provider Interface (SPI) for key manager factories.
Constructor Summary
KeyManagerFactorySpi()
Method Summary
protected abstract KeyManager[]engineGetKeyManagers()
Engine method for retrieving this factory's key managers.
protected abstract voidengineInit(ManagerFactoryParameters params)
Engine method for initializing this factory with some algorithm-specific parameters.
protected abstract voidengineInit(KeyStore store, char[] passwd)
Engine method for initializing this factory with a key store and a password for private keys.

Constructor Detail

KeyManagerFactorySpi

public KeyManagerFactorySpi()

Method Detail

engineGetKeyManagers

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

Returns: The key managers.

engineInit

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

Parameters: params The factory parameters.

Throws: InvalidAlgorithmParameterException If the supplied parameters are inappropriate for this instance.

engineInit

protected abstract void engineInit(KeyStore store, char[] passwd)
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.

Throws: KeyStoreException If the key store cannot be accessed. NoSuchAlgorithmException If some of the data from the key store cannot be retrieved. UnrecoverableKeyException If a private key cannot be retrieved, likely from a wrong password.