Package org.cryptacular.bean
Class KeyStoreBasedKeyFactoryBean<T extends Key>
java.lang.Object
org.cryptacular.bean.KeyStoreBasedKeyFactoryBean<T>
- Type Parameters:
T- Type of key, eitherSecretKeyorPrivateKey.
- All Implemented Interfaces:
FactoryBean<T>
- Author:
- Middleware Services
-
Constructor Summary
ConstructorsConstructorDescriptionKeyStoreBasedKeyFactoryBean(KeyStore keyStore, String alias, String password) Creates a new keystore based key factory bean. -
Method Summary
-
Constructor Details
-
KeyStoreBasedKeyFactoryBean
Creates a new keystore based key factory bean.- Parameters:
keyStore- Key store containing encryption key.alias- Name of encryption key entry in key store.password- Password used to decrypt key entry in keystore.
-
-
Method Details
-
getKeyStore
- Returns:
- Keystore that contains the
keyStore.
-
getAlias
- Returns:
- Alias that specifies the
KeyStoreentry containing the key.
-
newInstance
- Specified by:
newInstancein interfaceFactoryBean<T extends Key>- Returns:
- New instance of the type handled by this factory.
-