com.evolveum.midpoint.init
Class KeyStoreConfigurator
java.lang.Object
com.evolveum.midpoint.common.crypto.AESProtector
com.evolveum.midpoint.init.KeyStoreConfigurator
- All Implemented Interfaces:
- RuntimeConfiguration, Protector
@Component(value="protector")
public class KeyStoreConfigurator
- extends AESProtector
- implements RuntimeConfiguration, Protector
- Author:
- mamut
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyStoreConfigurator
public KeyStoreConfigurator()
init
@PostConstruct
public void init()
- Overrides:
init
in class AESProtector
getComponentId
public java.lang.String getComponentId()
- Description copied from interface:
RuntimeConfiguration
- Return symbolic name of the component in configuration subsytem.
Samples:
-
repository -> midpoint.repository
provisioning -> midpoint.provisioning
- Specified by:
getComponentId
in interface RuntimeConfiguration
- Returns:
- String name of component
getCurrentConfiguration
public org.apache.commons.configuration.Configuration getCurrentConfiguration()
- Description copied from interface:
RuntimeConfiguration
- Returns current component configuration in commons configuration structure
http://commons.apache.org/configuration/apidocs/org/apache/commons/configuration/Configuration.html
Example of structure for repository:
Configuration config = new BaseConfiguration();
config.setProperty("host", "localhost");
config.setProperty("port" , 12345);
return config;
Note: current configuration can be obtained only on fully initialized objects. If called on not initialized objects, then it can end with undefined behavior
- Specified by:
getCurrentConfiguration
in interface RuntimeConfiguration
- Returns:
- Commons configuration
getKeyStorePath
public java.lang.String getKeyStorePath()
- Returns:
- the keyStorePath
setKeyStorePath
public void setKeyStorePath(java.lang.String keyStorePath)
- Overrides:
setKeyStorePath
in class AESProtector
- Parameters:
keyStorePath
- the keyStorePath to set
getKeyStorePassword
public java.lang.String getKeyStorePassword()
- Returns:
- the keyStorePassword
setKeyStorePassword
public void setKeyStorePassword(java.lang.String keyStorePassword)
- Overrides:
setKeyStorePassword
in class AESProtector
- Parameters:
keyStorePassword
- the keyStorePassword to set
getEncryptionKeyAlias
public java.lang.String getEncryptionKeyAlias()
- Returns:
- the defaultKeyAlias
setEncryptionKeyAlias
public void setEncryptionKeyAlias(java.lang.String keyAlias)
- Overrides:
setEncryptionKeyAlias
in class AESProtector
- Parameters:
defaultKeyAlias
- the defaultKeyAlias to set
Copyright © 2012 evolveum. All Rights Reserved.