Has anyone else had this problem? I have a simple STS Username token request
for a SAML token where the username token is as follows:

<wsse:UsernameToken wsu:Id="UsernameToken-ID">
        <wsse:Username>myName</wsse:Username>
        <wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token
-profile-1.0#PasswordText">myPassword</wsse:Password>
</wsse:UsernameToken> 


On the receive side there is a callback to verify the username token

    public void handle(Callback[] callbacks) throws IOException,
            UnsupportedCallbackException
    {
        for(Callback callback: callbacks)
        {
            WSPasswordCallback cb = (WSPasswordCallback)callback;
            int callbackType = cb.getUsage();
            switch(callbackType)
            {
                case WSPasswordCallback.USERNAME_TOKEN:
                try
                {
                        if(cb.getType().equals(WSConstants.PASSWORD_TEXT))
                        {
                            String myPassword = cb.getPassword();
                    ...

The returned 'myPassword' is null. Any ideas why?



---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to