[
https://issues.apache.org/jira/browse/MEECROWAVE-12?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Romain Manni-Bucau updated MEECROWAVE-12:
-----------------------------------------
Description:
ValueTransformer is current solution, it is documented on core configuration
page with this:
{code}
For the configuration requiring to be ciphered you can implement
`org.apache.meecrowave.service.ValueTransformer`:
[source]
----
public class MyTransformer implements ValueTransformer {
@Override
public String name() {
return "mine";
}
@Override
public String apply(final String encodedPassword) {
return ....;
}
}
----
NOTE: this code being executed before the container starts you can't use CDI
there.
To register your implementation just put the fully qualified name of your
transformer in
`META-INF/services/org.apache.meecrowave.service.ValueTransformer`.
Then to use it set the value to `decode:mine:encodedvalue`. General pattern is:
`decode:<transformer name>:<value before decryption>`.
Note that by default the same ciphering algorithm than in TomEE is available
(Static3DES).
This syntax is usable on the command line and in `meecrowave.properties`.
{code}
was:ValueTransformer is current solution, it is documented on core
configuration page.
> Support a way to cipher password
> --------------------------------
>
> Key: MEECROWAVE-12
> URL: https://issues.apache.org/jira/browse/MEECROWAVE-12
> Project: Meecrowave
> Issue Type: New Feature
> Reporter: Romain Manni-Bucau
> Assignee: Romain Manni-Bucau
> Fix For: 0.3.0
>
>
> ValueTransformer is current solution, it is documented on core configuration
> page with this:
> {code}
> For the configuration requiring to be ciphered you can implement
> `org.apache.meecrowave.service.ValueTransformer`:
> [source]
> ----
> public class MyTransformer implements ValueTransformer {
> @Override
> public String name() {
> return "mine";
> }
> @Override
> public String apply(final String encodedPassword) {
> return ....;
> }
> }
> ----
> NOTE: this code being executed before the container starts you can't use CDI
> there.
> To register your implementation just put the fully qualified name of your
> transformer in
> `META-INF/services/org.apache.meecrowave.service.ValueTransformer`.
> Then to use it set the value to `decode:mine:encodedvalue`. General pattern
> is: `decode:<transformer name>:<value before decryption>`.
> Note that by default the same ciphering algorithm than in TomEE is available
> (Static3DES).
> This syntax is usable on the command line and in `meecrowave.properties`.
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)