org.apache.camel.component.jasypt
Class JasyptPropertiesParser
java.lang.Object
org.apache.camel.component.properties.DefaultPropertiesParser
org.apache.camel.component.jasypt.JasyptPropertiesParser
- All Implemented Interfaces:
- PropertiesParser
public class JasyptPropertiesParser
- extends DefaultPropertiesParser
A PropertiesParser which is using
Jasypt to decrypt any encrypted values.
The values must be enclosed in the prefix and suffix token.
- Version:
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JASYPT_PREFIX_TOKEN
public static final String JASYPT_PREFIX_TOKEN
- See Also:
- Constant Field Values
JASYPT_SUFFIX_TOKEN
public static final String JASYPT_SUFFIX_TOKEN
- See Also:
- Constant Field Values
JasyptPropertiesParser
public JasyptPropertiesParser()
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
getAlgorithm
public String getAlgorithm()
setAlgorithm
public void setAlgorithm(String algorithm)
getEncryptor
public org.jasypt.encryption.pbe.StandardPBEStringEncryptor getEncryptor()
parseProperty
public String parseProperty(String key,
String value,
Properties properties)
- Description copied from interface:
PropertiesParser
- While parsing the uri using
parseUri each
parsed property found invokes this callback.
This strategy method allows you to hook into the parsing and do custom lookup and return the actual value to use.
- Specified by:
parseProperty in interface PropertiesParser- Overrides:
parseProperty in class DefaultPropertiesParser
- Parameters:
key - the keyvalue - the valueproperties - the properties resolved which values should be looked up
- Returns:
- the value to use
Apache CAMEL