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.wss4j.common.ext.WSPasswordCallback> handler)
Creates a new instance.
|
public WSPasswordCallbackHandler(int usage,
Consumer<org.apache.wss4j.common.ext.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)
handle in interface CallbackHandlerCopyright © 2024. All rights reserved.