Top Description Constructors Methods
javax.net.ssl

public abstract Class KeyManagerFactorySpi

extends Object
Class Inheritance
Known Direct Subclasses
sun.security.ssl.KeyManagerFactoryImpl
Imports
java.security.*

This class defines the Service Provider Interface (SPI) for the KeyManagerFactory class.

All the abstract methods in this class must be implemented by each cryptographic service provider who wishes to supply the implementation of a particular key manager factory.

Since
1.4
See Also
KeyManagerFactory, KeyManager

Constructor Summary

AccessConstructor and Description
public
KeyManagerFactorySpi()

Constructor for subclasses to call.

Method Summary

Modifier and TypeMethod and Description
protected abstract KeyManager[]

Returns:

the key managers
engineGetKeyManagers
()

Returns one key manager for each type of key material.

protected abstract void
engineInit(KeyStore
the key store or null
ks
,
char[]
the password for recovering keys
password
)

Initializes this factory with a source of key material.

protected abstract void
engineInit(ManagerFactoryParameters
an implementation of a provider-specific parameter specification
spec
)

Initializes this factory with a source of key material.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

KeyManagerFactorySpiback to summary
public KeyManagerFactorySpi()

Constructor for subclasses to call.

Method Detail

engineGetKeyManagersback to summary
protected abstract KeyManager[] engineGetKeyManagers()

Returns one key manager for each type of key material.

Returns:KeyManager[]

the key managers

Exceptions
IllegalStateException:
if the KeyManagerFactorySpi is not initialized
engineInitback to summary
protected abstract void engineInit(KeyStore ks, char[] password) throws KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException

Initializes this factory with a source of key material.

Parameters
ks:KeyStore

the key store or null

password:char[]

the password for recovering keys

Exceptions
KeyStoreException:
if this operation fails
NoSuchAlgorithmException:
if the specified algorithm is not available from the specified provider.
UnrecoverableKeyException:
if the key cannot be recovered
See Also
KeyManagerFactory#init(KeyStore, char[])
engineInitback to summary
protected abstract void engineInit(ManagerFactoryParameters spec) throws InvalidAlgorithmParameterException

Initializes this factory with a source of key material.

In some cases, initialization parameters other than a keystore and password may be needed by a provider. Users of that particular provider are expected to pass an implementation of the appropriate ManagerFactoryParameters as defined by the provider. The provider can then call the specified methods in the ManagerFactoryParameters implementation to obtain the needed information.

Parameters
spec:ManagerFactoryParameters

an implementation of a provider-specific parameter specification

Exceptions
InvalidAlgorithmParameterException:
if there is problem with the parameters
See Also
KeyManagerFactory#init(ManagerFactoryParameters spec)