public abstract class KeyManagerFactorySpi extends java.lang.Object
| Constructor and Description |
|---|
KeyManagerFactorySpi() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract KeyManager[] |
engineGetKeyManagers()
Engine method for retrieving this factory's key managers.
|
protected abstract void |
engineInit(java.security.KeyStore store,
char[] passwd)
Engine method for initializing this factory with a key store and a
password for private keys.
|
protected abstract void |
engineInit(ManagerFactoryParameters params)
Engine method for initializing this factory with some
algorithm-specific parameters.
|
public KeyManagerFactorySpi()
protected abstract KeyManager[] engineGetKeyManagers()
protected abstract void engineInit(ManagerFactoryParameters params) throws java.security.InvalidAlgorithmParameterException
params - The factory parameters.java.security.InvalidAlgorithmParameterException - If the supplied parameters
are inappropriate for this instance.protected abstract void engineInit(java.security.KeyStore store, char[] passwd) throws java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.UnrecoverableKeyException
null,
in which case some default parameters (possibly derived from system
properties) should be used.store - The key store.passwd - The private key password.java.security.KeyStoreException - If the key store cannot be accessed.java.security.NoSuchAlgorithmException - If some of the data from the key
store cannot be retrieved.java.security.UnrecoverableKeyException - If a private key cannot be retrieved,
likely from a wrong password.