public class WSPasswordCallbackHandler extends Object implements CallbackHandler
CallbackHandler that only handles instances
of WSPasswordCallback with a specific usage.| Constructor and Description |
|---|
WSPasswordCallbackHandler(int usage,
Consumer<org.apache.ws.security.WSPasswordCallback> handler)
Creates a new instance.
|
public WSPasswordCallbackHandler(int usage,
Consumer<org.apache.ws.security.WSPasswordCallback> handler)
usage - A constant from WSPasswordCallback indicating the usage of this callback.handler - Consumer that handles a WSPasswordCallback. This function will be called with the
password callback that matches the usage also provided.public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle in interface CallbackHandlerIOExceptionUnsupportedCallbackExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.