public class MyKeyManagerFactorySpi extends KeyManagerFactorySpi
Modifier and Type | Class and Description |
---|---|
static class |
MyKeyManagerFactorySpi.Parameters |
Constructor and Description |
---|
MyKeyManagerFactorySpi() |
Modifier and Type | Method and Description |
---|---|
protected KeyManager[] |
engineGetKeyManagers()
Returns a list of key managers, one instance for each type of key in the
key store.
|
protected void |
engineInit(KeyStore ks,
char[] password)
Initializes this instance with the specified key store and password.
|
protected void |
engineInit(ManagerFactoryParameters spec)
Initializes this instance with the specified factory parameters.
|
protected void engineInit(KeyStore ks, char[] password) throws KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException
KeyManagerFactorySpi
engineInit
in class KeyManagerFactorySpi
ks
- the key store or null
to use the default key store.password
- the key store password.KeyStoreException
- if initializing this instance fails.NoSuchAlgorithmException
- if a required algorithm is not available.UnrecoverableKeyException
- if a key cannot be recovered.protected void engineInit(ManagerFactoryParameters spec) throws InvalidAlgorithmParameterException
KeyManagerFactorySpi
engineInit
in class KeyManagerFactorySpi
spec
- the factory parameters.InvalidAlgorithmParameterException
- if an error occurs.protected KeyManager[] engineGetKeyManagers()
KeyManagerFactorySpi
engineGetKeyManagers
in class KeyManagerFactorySpi