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.PropertiesParser
public class JasyptPropertiesParser
extends org.apache.camel.component.properties.DefaultPropertiesParser
A
PropertiesParser which is using
Jasypt to decrypt encrypted values.
The parts of the values which should be decrypted must be enclosed in the prefix and suffix token.-
Field Summary
FieldsFields inherited from class org.apache.camel.component.properties.DefaultPropertiesParser
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseProperty(String key, String value, org.apache.camel.component.properties.PropertiesLookup properties) voidsetAlgorithm(String algorithm) voidsetEncryptor(org.jasypt.encryption.StringEncryptor encryptor) voidsetPassword(String password) voidsetRandomIvGeneratorAlgorithm(String randomIvGeneratorAlgorithm) voidsetRandomSaltGeneratorAlgorithm(String randomSaltGeneratorAlgorithm) Methods inherited from class org.apache.camel.component.properties.DefaultPropertiesParser
getPropertiesComponent, parseUri, setPropertiesComponentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.component.properties.PropertiesParser
customLookup
-
Field Details
-
JASYPT_PREFIX_TOKEN
- See Also:
-
JASYPT_SUFFIX_TOKEN
- See Also:
-
-
Constructor Details
-
JasyptPropertiesParser
public JasyptPropertiesParser()
-
-
Method Details
-
parseProperty
public String parseProperty(String key, String value, org.apache.camel.component.properties.PropertiesLookup properties) - Specified by:
parsePropertyin interfaceorg.apache.camel.component.properties.PropertiesParser- Overrides:
parsePropertyin classorg.apache.camel.component.properties.DefaultPropertiesParser
-
setEncryptor
public void setEncryptor(org.jasypt.encryption.StringEncryptor encryptor) -
setAlgorithm
-
setRandomSaltGeneratorAlgorithm
-
setRandomIvGeneratorAlgorithm
-
setPassword
-