Package javax.net.ssl
Class KeyManagerFactorySpi
java.lang.Object
javax.net.ssl.KeyManagerFactorySpi
- Direct Known Subclasses:
KeyManagerFactoryImpl
public abstract class KeyManagerFactorySpi extends Object
The Service Provider Interface (SPI) for the
KeyManagerFactory class.-
Constructor Summary
Constructors Constructor Description KeyManagerFactorySpi()Creates a newKeyManagerFactorySpiinstance. -
Method Summary
Modifier and Type Method Description protected abstract KeyManager[]engineGetKeyManagers()Returns a list of key managers, one instance for each type of key in the key store.protected abstract voidengineInit(KeyStore ks, char[] password)Initializes this instance with the specified key store and password.protected abstract voidengineInit(ManagerFactoryParameters spec)Initializes this instance with the specified factory parameters.
-
Constructor Details
-
KeyManagerFactorySpi
public KeyManagerFactorySpi()Creates a newKeyManagerFactorySpiinstance.
-
-
Method Details
-
engineInit
protected abstract void engineInit(KeyStore ks, char[] password) throws KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyExceptionInitializes this instance with the specified key store and password.- Parameters:
ks- the key store ornullto use the default key store.password- the key store password.- Throws:
KeyStoreException- if initializing this instance fails.NoSuchAlgorithmException- if a required algorithm is not available.UnrecoverableKeyException- if a key cannot be recovered.
-
engineInit
protected abstract void engineInit(ManagerFactoryParameters spec) throws InvalidAlgorithmParameterExceptionInitializes this instance with the specified factory parameters.- Parameters:
spec- the factory parameters.- Throws:
InvalidAlgorithmParameterException- if an error occurs.
-
engineGetKeyManagers
Returns a list of key managers, one instance for each type of key in the key store.- Returns:
- a list of key managers.
-