Package org.cryptacular.bean
Class KeyStoreFactoryBean
java.lang.Object
org.cryptacular.bean.KeyStoreFactoryBean
- All Implemented Interfaces:
FactoryBean<KeyStore>
Factory bean that produces a
KeyStore from a file or URI.- Author:
- Middleware Services
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionKeyStoreFactoryBean(Resource resource, String password) Creates a new keystore factory bean.KeyStoreFactoryBean(Resource resource, String type, String password) Creates a new keystore factory bean. -
Method Summary
-
Field Details
-
DEFAULT_TYPE
Default keystore type, "JCEKS".- See Also:
-
-
Constructor Details
-
KeyStoreFactoryBean
Creates a new keystore factory bean.- Parameters:
resource- Resource containing encoded keystore data.password- Password used to decrypt key entry in keystore.
-
KeyStoreFactoryBean
Creates a new keystore factory bean.- Parameters:
resource- Resource containing encoded keystore data.type- Keystore type, e.g. JCEKS.password- Password used to decrypt key entry in keystore.
-
-
Method Details
-
getType
- Returns:
- Keystore type.
-
getResource
- Returns:
- Resource that provides encoded keystore data.
-
newInstance
- Specified by:
newInstancein interfaceFactoryBean<KeyStore>- Returns:
- New instance of the type handled by this factory.
-