public class AliasKeyManagerFactorySpi extends KeyManagerFactorySpi
| Modifier and Type | Field and Description |
|---|---|
protected String |
algorithm |
protected String |
alias |
protected String |
baseAlgorithm |
protected KeyManagerFactory |
originalFactory |
| Constructor and Description |
|---|
AliasKeyManagerFactorySpi() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
determineAlias(KeyStore keyStore,
char[] chars)
Determines and validates the alias which should be used for the authentication.
|
protected KeyManager[] |
engineGetKeyManagers()
Return the array with wrapped KeyManager instances.
|
protected void |
engineInit(KeyStore keyStore,
char[] chars)
Initializes the KeyManagerFactory with the keystore and its password.
|
protected void |
engineInit(ManagerFactoryParameters managerFactoryParameters)
Currently not implemented.
|
protected KeyManager[] |
wrapKeyManagers(KeyManager[] originalKeyManagers)
Wraps the KeyManager instances provided by the default KeyManager into the AliasKeyManager.
|
protected final String algorithm
protected String baseAlgorithm
protected KeyManagerFactory originalFactory
protected String alias
protected void engineInit(KeyStore keyStore, char[] chars) throws KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException
engineInit in class KeyManagerFactorySpikeyStore - Keystore containing the private keychars - Password to access the keyStoreKeyStoreExceptionNoSuchAlgorithmExceptionUnrecoverableKeyExceptionprotected void engineInit(ManagerFactoryParameters managerFactoryParameters) throws InvalidAlgorithmParameterException
engineInit in class KeyManagerFactorySpimanagerFactoryParameters - ManagerFactoryParameters object containing the parametrs of the KeyManagerFactory.InvalidAlgorithmParameterExceptionprotected KeyManager[] engineGetKeyManagers()
engineGetKeyManagers in class KeyManagerFactorySpiprotected KeyManager[] wrapKeyManagers(KeyManager[] originalKeyManagers)
originalKeyManagers - The KeyMAnager instances as returned by the default algorithmprotected String determineAlias(KeyStore keyStore, char[] chars) throws KeyStoreException
keyStore - Keystore containing the private keychars - Password to access the keyStoreKeyStoreExceptionCopyright © 2016. All rights reserved.