Apache CXF API

org.apache.cxf.ws.security.trust.delegation
Class WSSUsernameCallbackHandler

java.lang.Object
  extended by org.apache.cxf.ws.security.trust.delegation.WSSUsernameCallbackHandler
All Implemented Interfaces:
CallbackHandler

public class WSSUsernameCallbackHandler
extends Object
implements CallbackHandler

This CallbackHandler implementation obtains a username via the jaxws property "ws-security.username", as defined in SecurityConstants, and creates a wss UsernameToken (with no password) to be used as the delegation token.


Constructor Summary
WSSUsernameCallbackHandler()
           
 
Method Summary
 void handle(Callback[] callbacks)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSSUsernameCallbackHandler

public WSSUsernameCallbackHandler()
Method Detail

handle

public void handle(Callback[] callbacks)
            throws IOException,
                   UnsupportedCallbackException
Specified by:
handle in interface CallbackHandler
Throws:
IOException
UnsupportedCallbackException

Apache CXF API

Apache CXF