Class KeyStoreServiceImpl
java.lang.Object
org.forgerock.openidm.keystore.impl.KeyStoreServiceImpl
- All Implemented Interfaces:
KeyStoreService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final KeyStoreDetailsThe details used to initialize theKeyStore.protected final KeyStoreInitializerTheKeyStoreInitializerused to load and initialize theKeyStoreprotected KeyStoreThe wrappedKeyStoreobject. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aKeyStoreServiceImpland sets the keystore java system properties. -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(org.osgi.service.component.ComponentContext context) Initializes and loads the openidm keystore.voiddeactivate(org.osgi.service.component.ComponentContext context) Nullifies the openidm keystore and keystore details.Gets the keystore thisKeyStoreServicemanages.voidstore()Stores theKeyStoreobject to disk or device.
-
Field Details
-
store
The wrappedKeyStoreobject. -
keyStoreDetails
The details used to initialize theKeyStore. -
keyStoreInitializer
TheKeyStoreInitializerused to load and initialize theKeyStore
-
-
Constructor Details
-
KeyStoreServiceImpl
Constructs aKeyStoreServiceImpland sets the keystore java system properties.- Throws:
GeneralSecurityException- if unable to construct aKeyStoreServiceImpl.
-
-
Method Details
-
activate
public void activate(org.osgi.service.component.ComponentContext context) throws GeneralSecurityException Initializes and loads the openidm keystore.- Parameters:
context- theComponentContext.- Throws:
GeneralSecurityException- if unable to initialize and load the openidm keystore.
-
deactivate
public void deactivate(org.osgi.service.component.ComponentContext context) Nullifies the openidm keystore and keystore details.- Parameters:
context- theComponentContext.
-
getKeyStore
Description copied from interface:KeyStoreServiceGets the keystore thisKeyStoreServicemanages.- Specified by:
getKeyStorein interfaceKeyStoreService- Returns:
- the
KeyStore.
-
getKeyStoreDetails
Description copied from interface:KeyStoreService- Specified by:
getKeyStoreDetailsin interfaceKeyStoreService- Returns:
- the
KeyStoreDetails.
-
store
Description copied from interface:KeyStoreServiceStores theKeyStoreobject to disk or device.- Specified by:
storein interfaceKeyStoreService- Throws:
GeneralSecurityException- if unable to store theKeyStore.
-