Package org.openremote.manager.security
Class KeyStoreServiceImpl
java.lang.Object
org.openremote.manager.security.KeyStoreServiceImpl
- All Implemented Interfaces:
org.openremote.model.ContainerService,org.openremote.model.security.KeyStoreService
public class KeyStoreServiceImpl
extends Object
implements org.openremote.model.security.KeyStoreService
This service is used for retrieving, creating, or editing KeyStore (and TrustStore) files.
Currently the KeyStores are stored in the Storage directory of OpenRemote, which is usually volumed and persisted.
Each realm is allocated 2 KeyStores; A Client KeyStore, which is used for storing key-pairs that are used by clients (be that as an Agent or as a plain client), and a TrustStore, which contains trusted certificates, usually SSL certificates. To ensure both security and extensibility, both the default and predefined TrustStores are used to find the correct certificates.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ManagerIdentityServiceprotected Pathprotected org.openremote.container.persistence.PersistenceServiceprotected PathFields inherited from interface org.openremote.model.ContainerService
DEFAULT_PRIORITY, HIGH_PRIORITY, LOW_PRIORITY, MED_PRIORITYFields inherited from interface org.openremote.model.security.KeyStoreService
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected KeyStorecreateKeyStore(Path path) getKeyManagerFactory(String alias) intvoidinit(org.openremote.model.Container container) voidstart(org.openremote.model.Container container) voidstop(org.openremote.model.Container container)
-
Field Details
-
persistenceService
protected org.openremote.container.persistence.PersistenceService persistenceService -
identityService
-
keyStorePath
-
trustStorePath
-
-
Constructor Details
-
KeyStoreServiceImpl
public KeyStoreServiceImpl()
-
-
Method Details
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceorg.openremote.model.ContainerService
-
init
- Specified by:
initin interfaceorg.openremote.model.ContainerService- Throws:
Exception
-
start
- Specified by:
startin interfaceorg.openremote.model.ContainerService- Throws:
Exception
-
getKeyManagerFactory
- Specified by:
getKeyManagerFactoryin interfaceorg.openremote.model.security.KeyStoreService- Throws:
Exception
-
getTrustManagerFactory
- Specified by:
getTrustManagerFactoryin interfaceorg.openremote.model.security.KeyStoreService- Throws:
Exception
-
createKeyStore
- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.openremote.model.ContainerService- Throws:
Exception
-