Hi,
I try to manage authentication though WS-Security with CXF. I follows
instruction on below link :
http://cwiki.apache.org/CXF20DOC/ws-security.html
http://cwiki.apache.org/CXF20DOC/ws-security.html
But, i have a problem with the password. In this site, if i use
PasswordDigest, it explain that the CallBackHandler have to retreive the
password from identifier like this for example :
public class PasswordHandler implements CallbackHandler {
public void handle(Callback[] callbacks) throws IOException,
UnsupportedCallbackException {
WSPasswordCallback pc = (WSPasswordCallback) callbacks[0];
if (pc.getIdentifer().equals("arsenal")) {
pc.setPassword("gunnersa");
}
}
}
In my case, i want manage the authentication with JMX security.
So, my web service try to connect to a JMX securised connection. So i want
in the CallBackHandler try to connect to the JMX url with the user and
password of my Web service connection.
The problem is that the password is not accessible in the CallBackHandler.
The method getPassword return null except when i use the PasswordText
(password not crypted).
How get password decrypted in my case ?
PS : i hope my english is not to bad. I'm french in reality.
Thanks,
Kevin
--
View this message in context:
http://www.nabble.com/In-a-connexion-with-WS-Security%2C-How-get-password-decrypted-in-CallBackHandler---tp21370135p21370135.html
Sent from the cxf-user mailing list archive at Nabble.com.