com.evolveum.midpoint.init
Class KeyStoreConfigurator

java.lang.Object
  extended by com.evolveum.midpoint.common.crypto.AESProtector
      extended by com.evolveum.midpoint.init.KeyStoreConfigurator
All Implemented Interfaces:
RuntimeConfiguration, Protector

@Component(value="protector")
public class KeyStoreConfigurator
extends AESProtector
implements RuntimeConfiguration, Protector

Author:
mamut

Constructor Summary
KeyStoreConfigurator()
           
 
Method Summary
 java.lang.String getComponentId()
          Return symbolic name of the component in configuration subsytem.
 org.apache.commons.configuration.Configuration getCurrentConfiguration()
          Returns current component configuration in commons configuration structure http://commons.apache.org/configuration/apidocs/org/apache/commons/configuration/Configuration.html
 java.lang.String getEncryptionKeyAlias()
           
 java.lang.String getKeyStorePassword()
           
 java.lang.String getKeyStorePath()
           
 void init()
           
 void setEncryptionKeyAlias(java.lang.String keyAlias)
           
 void setKeyStorePassword(java.lang.String keyStorePassword)
           
 void setKeyStorePath(java.lang.String keyStorePath)
           
 
Methods inherited from class com.evolveum.midpoint.common.crypto.AESProtector
decrypt, decryptString, encrypt, encrypt, encryptString, isEncrypted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.evolveum.midpoint.common.crypto.Protector
decrypt, decryptString, encrypt, encrypt, encryptString, isEncrypted
 

Constructor Detail

KeyStoreConfigurator

public KeyStoreConfigurator()
Method Detail

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
      model -> midpoint.model
  • 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 © 2011 evolveum. All Rights Reserved.