I've never tried it so I can't say for sure it'll work. I don't think there
is an easier way to do it.

Colm.

On Wed, Jun 27, 2012 at 11:47 AM, Thundr <[email protected]> wrote:

> Thanks Colm,
>
> I have implemented the scenario with a two pair of public/private keys and
> it works.
>
> In the original scenario with a shared symmetric key, i added the property
> encryptSymmetricEncryptionKey=false to the client "out" interceptor, but in
> the server "in" interceptor, I supose that i have to rewrite this metod in
> the passwordCallbackClass:
> ####
> public void handle(Callback[] callbacks) throws IOException,
>                        UnsupportedCallbackException {
>                for (int i = 0; i < callbacks.length; i++) {
>                        WSPasswordCallback pc = (WSPasswordCallback)
> callbacks[i];
>
>                        String pass = passwords.get(pc.getIdentifier());
>                        if (pass != null) {
>                                pc.setPassword(pass);
>                                return;
>                        }
>                }
>        }
> ####
> In that method, I have to implement the logic for reading the
> symmetricStore.jks and read the entry for symmetric.
>
> Is that correct?
>
> Is there any api that I can make it easier?
>
> Thanks for all
>
> Carlos
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Encryption-Decryption-using-a-shared-symmetric-key-tp5710302p5710357.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Reply via email to