| java.lang.Object org.objectweb.jonas.security.auth.callback.DialogCallbackHandler
DialogCallbackHandler | public class DialogCallbackHandler implements CallbackHandler(Code) | | Uses a Swing dialog window to query the user for answers to authentication
questions. This can be used by a JAAS application to instantiate a
CallbackHandler
author: Jeremie Laurent, Yann Petiot, Frederic Rinaldi author: Florent Benoit. Integration in the JOnAS 3.1.2 tree |
Method Summary | |
public void | handle(Callback[] callbacks) Invoke an array of Callbacks. |
DialogCallbackHandler | public DialogCallbackHandler()(Code) | | The constructor to create a callback dialog with the default parent
window.
|
DialogCallbackHandler | public DialogCallbackHandler(String title)(Code) | | The constructor to create a callback dialog with the default parent
window
Parameters: title - the title of the dialog box |
DialogCallbackHandler | public DialogCallbackHandler(String title, String username, String password)(Code) | | The constructor to create a callback dialog with the default parent
window
Parameters: title - the title of the dialog box Parameters: username - the label of the username label Parameters: password - the label of the password label |
DialogCallbackHandler | public DialogCallbackHandler(String title, String username, String password, String loginButton, String cancelButton, int usernameLength, int passwordLength, char echoChar)(Code) | | The constructor to create a callback dialog with the default parent
window
Parameters: title - the title of the dialog box Parameters: username - the label of the username label Parameters: password - the label of the password label Parameters: loginButton - the label of the login button Parameters: cancelButton - the label of the cancel button Parameters: usernameLength - the length of the username field Parameters: passwordLength - the length of the password field Parameters: echoChar - the character to display when entering the passwordimplies that echoCharOn = true |
handle | public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException(Code) | | Invoke an array of Callbacks.
Parameters: callbacks - an array of Callback objects whichcontain the information requested by an underlying securityservice to be retrieved or displayed. exception: java.io.IOException - if an input or output error occurs. exception: UnsupportedCallbackException - if the implementation of thismethod does not support one or more of the Callbacks specifiedin the callbacks parameter.
|
|
|