Package org.forgerock.audit.secure
Class JcaKeyStoreHandler
java.lang.Object
org.forgerock.audit.secure.JcaKeyStoreHandler
- All Implemented Interfaces:
KeyStoreHandler
Default implementation of a Keystore handler.
-
Constructor Summary
ConstructorsConstructorDescriptionJcaKeyStoreHandler(String type, String location, String password) Creates a new keystore handler. -
Method Summary
-
Constructor Details
-
JcaKeyStoreHandler
Creates a new keystore handler.- Parameters:
type- The type of keystorelocation- The path of the keystorepassword- The password to access the keystore- Throws:
Exception- If an error occurs while initialising the keystore
-
-
Method Details
-
getStore
Description copied from interface:KeyStoreHandlerGet the keystore.- Specified by:
getStorein interfaceKeyStoreHandler- Returns:
- the keystore.
-
setStore
Description copied from interface:KeyStoreHandlerSets the keystore.- Specified by:
setStorein interfaceKeyStoreHandler- Parameters:
keystore- The keystore to use- Throws:
Exception- If an error occurs
-
store
Description copied from interface:KeyStoreHandlerSaves the keystore.- Specified by:
storein interfaceKeyStoreHandler- Throws:
Exception- If an error occurs.
-
getPassword
Description copied from interface:KeyStoreHandlerReturns the password.- Specified by:
getPasswordin interfaceKeyStoreHandler- Returns:
- the password used to access the keystore
-
getLocation
Description copied from interface:KeyStoreHandlerReturns the path to the keystore.- Specified by:
getLocationin interfaceKeyStoreHandler- Returns:
- the path
-
getType
Description copied from interface:KeyStoreHandlerReturns the type of the keystore.- Specified by:
getTypein interfaceKeyStoreHandler- Returns:
- the keystore type
-