Class WSPasswordCallbackHandler
java.lang.Object
org.mule.soap.internal.security.callback.WSPasswordCallbackHandler
- All Implemented Interfaces:
CallbackHandler
Abstract implementation of
CallbackHandler that only handles instances of WSPasswordCallback with a specific
usage.- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionWSPasswordCallbackHandler(int usage, Consumer<org.apache.wss4j.common.ext.WSPasswordCallback> handler) Creates a new instance. -
Method Summary
-
Constructor Details
-
WSPasswordCallbackHandler
public WSPasswordCallbackHandler(int usage, Consumer<org.apache.wss4j.common.ext.WSPasswordCallback> handler) Creates a new instance.- Parameters:
usage- A constant fromWSPasswordCallbackindicating the usage of this callback.handler-Consumerthat handles aWSPasswordCallback. This function will be called with the password callback that matches theusagealso provided.
-
-
Method Details
-
handle
- Specified by:
handlein interfaceCallbackHandler
-