| <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" |
| xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0" |
| xmlns:enc="http://karaf.apache.org/xmlns/jasypt/v1.0.0"> |
| |
| |
| <ext:property-placeholder /> |
| |
| <enc:property-placeholder> |
| <enc:encryptor class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor"> |
| <property name="config"> |
| <bean class="org.jasypt.encryption.pbe.config.EnvironmentStringPBEConfig"> |
| <property name="algorithm" value="PBEWithMD5AndDES" /> |
| <property name="password" value="password" /> |
| </bean> |
| </property> |
| </enc:encryptor> |
| </enc:property-placeholder> |
| |
| <service auto-export="all-classes"> |
| <service-properties> |
| <entry key="encoded" value="ENC(${foo})" /> |
| </service-properties> |
| <bean class="java.lang.String"> |
| <argument value="ENC(${foo})" /> |
| </bean> |
| </service> |
| |
| </blueprint> |