axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Reinhold" <brianreinh...@lampreynetworks.com>
Subject Rampart STS Username service not returning password in callback
Date Tue, 15 Jan 2013 20:00:53 GMT
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-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message