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:
- org.apache.camel.component.properties.AugmentedPropertyNameAwarePropertiesParser, org.apache.camel.component.properties.PropertiesParser
public class JasyptPropertiesParser
- extends org.apache.camel.component.properties.DefaultPropertiesParser
A PropertiesParser
which is using
Jasypt to decrypt any encrypted values.
The values must be enclosed in the prefix and suffix token.
- Version:
Fields inherited from class org.apache.camel.component.properties.DefaultPropertiesParser |
log |
Methods inherited from class org.apache.camel.component.properties.DefaultPropertiesParser |
parseUri, parseUri |
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)
- Specified by:
parseProperty
in interface org.apache.camel.component.properties.PropertiesParser
- Overrides:
parseProperty
in class org.apache.camel.component.properties.DefaultPropertiesParser
Apache Camel