org.constretto.internal.store
Class EncryptedPropertiesStore

java.lang.Object
  extended by org.constretto.internal.store.PropertiesStore
      extended by org.constretto.internal.store.EncryptedPropertiesStore
All Implemented Interfaces:
ConfigurationStore

public class EncryptedPropertiesStore
extends PropertiesStore

Has support for jasypt encrypted properties. See Jasypt CLI and Jasypt Configuration Files

Author:
Ole-Martin Mørk (olemartin@openadex.com)

Constructor Summary
EncryptedPropertiesStore(String passwordProperty)
          Creates a new instance
 
Method Summary
protected  Properties parseProperties(Properties props)
          Uses jasypt to parse the properties
 
Methods inherited from class org.constretto.internal.store.PropertiesStore
addResource, parseConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptedPropertiesStore

public EncryptedPropertiesStore(String passwordProperty)
Creates a new instance

Parameters:
passwordProperty - the name of the system property to read from
Method Detail

parseProperties

protected Properties parseProperties(Properties props)
Uses jasypt to parse the properties

Overrides:
parseProperties in class PropertiesStore
Parameters:
props - the properties currently read
Returns:
an instance of EncryptableProperties


Copyright © 2008-2011. All Rights Reserved.