Package javax.net.ssl
Class KeyManagerFactorySpi
- java.lang.Object
-
- javax.net.ssl.KeyManagerFactorySpi
-
public abstract class KeyManagerFactorySpi extends Object
This class defines the Service Provider Interface (SPI) for theKeyManagerFactoryclass.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
Constructors Constructor Description KeyManagerFactorySpi()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description protected abstract KeyManager[]engineGetKeyManagers()Returns one key manager for each type of key material.protected abstract voidengineInit(KeyStore ks, char[] password)Initializes this factory with a source of key material.
-
-
-
Method Detail
-
engineInit
protected abstract void engineInit(@Nullable KeyStore ks, char[] password) throws KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException
Initializes this factory with a source of key material.- Parameters:
ks- the key store or nullpassword- the password for recovering keys- Throws:
KeyStoreException- if this operation failsNoSuchAlgorithmException- if the specified algorithm is not available from the specified provider.UnrecoverableKeyException- if the key cannot be recovered- See Also:
KeyManagerFactory.init(KeyStore, char[])
-
engineGetKeyManagers
protected abstract KeyManager[] engineGetKeyManagers()
Returns one key manager for each type of key material.- Returns:
- the key managers
- Throws:
IllegalStateException- if the KeyManagerFactorySpi is not initialized
-
-