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.

Reply via email to