org.dvb.auth.callback
Interface CallbackHandler
public interface CallbackHandler
An application implements a CallbackHandler and passes it to underlying security services so that they may interact with the application to retrieve specific authentication
data, such as usernames and passwords, or to display certain information, such as error and warning messages.
Method Summary |
void |
handle(Callback[] callbacks)
Called when a callback needs handling. |
handle
void handle(Callback[] callbacks)
throws java.io.IOException,
UnsupportedCallbackException
- Called when a callback needs handling.
- Parameters:
callbacks
- - an array of Callback objects provided by an underlying security service which contains the information requested to be retrieved or displayed.
- Throws:
java.io.IOException
- if an input or output error occurs when retrieving the password
UnsupportedCallbackException
- if one of the callbacks in the array is not supported by the handler