Hey Andy,

you can check org.apache.openejb.arquillian.tests.cipher.CipherFromAppTest
which is an arquillian test on tomee doing exactly that


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-01-18 15:50 GMT+01:00 Jonathan Gallimore <[email protected]>:

> passwordCipher = statesecret
> passwordCipher = com.tomitribe.training.jdbc.security.SecretServiceCipher
>
> Shouldn't that be:
>
> password = statesecret
> passwordCipher = com.tomitribe.training.jdbc.security.SecretServiceCipher
>
> On Wed, Jan 18, 2017 at 2:47 PM, agumbrecht <[email protected]>
> wrote:
>
> > Tried to set this up on TomEE 7.0.2 - Still no luck.
> >
> > Used both old and new interface and paths. This is my ShrinkWrap.
> >
> > f72b37ca-9cda-4f55-866b-1b796f069a0c.war:
> > /WEB-INF/
> > /WEB-INF/classes/
> > /WEB-INF/classes/com/
> > /WEB-INF/classes/com/tomitribe/
> > /WEB-INF/classes/com/tomitribe/training/
> > /WEB-INF/classes/com/tomitribe/training/jdbc/
> > /WEB-INF/classes/com/tomitribe/training/jdbc/security/
> > /WEB-INF/classes/com/tomitribe/training/jdbc/security/
> > SecretServiceSingleton.class
> > /WEB-INF/classes/com/tomitribe/training/jdbc/
> security/SecretServiceCipher.
> > class
> > /WEB-INF/resources.xml
> > /META-INF/
> > /META-INF/beans.xml
> > /META-INF/org.apache.openejb.resource.jdbc.cipher.PasswordCipher/
> > /META-INF/org.apache.openejb.resource.jdbc.cipher.
> > PasswordCipher/statesecret
> > /META-INF/org.apache.openejb.cipher.PasswordCipher/
> > /META-INF/org.apache.openejb.cipher.PasswordCipher/statesecret
> >
> > statesecret contains the SecretServiceCipher ref.
> >
> > Tried both in resources.xml for DS:
> >
> > passwordCipher = statesecret
> > passwordCipher = com.tomitribe.training.jdbc.
> security.SecretServiceCipher
> >
> > TomEE seems to ignore passwordCipher and falls back to PlainText.
> >
> > Andy.
> >
> >
> >
> > -----
> >     --
> >     Andy Gumbrecht
> >
> >     http://www.tomitribe.com
> >     [email protected]
> >     https://twitter.com/AndyGeeDe
> >
> >     TomEE treibt Tomitribe ! | http://tomee.apache.org
> > --
> > View this message in context: http://tomee-openejb.979440.
> > n4.nabble.com/DataSource-password-cipher-tp4671904p4680888.html
> > Sent from the TomEE Users mailing list archive at Nabble.com.
> >
>
>
>
> --
> Jonathan Gallimore
> http://twitter.com/jongallimore
> http://www.tomitribe.com
>

Reply via email to