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
ConstructorDescriptionJcaKeyStoreHandler
(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:KeyStoreHandler
Get the keystore.- Specified by:
getStore
in interfaceKeyStoreHandler
- Returns:
- the keystore.
-
setStore
Description copied from interface:KeyStoreHandler
Sets the keystore.- Specified by:
setStore
in interfaceKeyStoreHandler
- Parameters:
keystore
- The keystore to use- Throws:
Exception
- If an error occurs
-
store
Description copied from interface:KeyStoreHandler
Saves the keystore.- Specified by:
store
in interfaceKeyStoreHandler
- Throws:
Exception
- If an error occurs.
-
getPassword
Description copied from interface:KeyStoreHandler
Returns the password.- Specified by:
getPassword
in interfaceKeyStoreHandler
- Returns:
- the password used to access the keystore
-
getLocation
Description copied from interface:KeyStoreHandler
Returns the path to the keystore.- Specified by:
getLocation
in interfaceKeyStoreHandler
- Returns:
- the path
-
getType
Description copied from interface:KeyStoreHandler
Returns the type of the keystore.- Specified by:
getType
in interfaceKeyStoreHandler
- Returns:
- the keystore type
-