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 theKeyManagerFactoryclass.
-
-
Constructor Summary
Constructors Constructor Description KeyManagerFactorySpi()Creates a newKeyManagerFactorySpiinstance.
-
Method Summary
All Methods Instance Methods Abstract Methods 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.
-
-
-
Method Detail
-
engineInit
protected abstract void engineInit(KeyStore ks, char[] password) throws KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException
Initializes 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 InvalidAlgorithmParameterException
Initializes this instance with the specified factory parameters.- Parameters:
spec- the factory parameters.- Throws:
InvalidAlgorithmParameterException- if an error occurs.
-
engineGetKeyManagers
protected abstract KeyManager[] engineGetKeyManagers()
Returns a list of key managers, one instance for each type of key in the key store.- Returns:
- a list of key managers.
-
-