|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.security.auth.callback.DialogCallbackHandler
public class DialogCallbackHandler
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
Constructor Summary | |
---|---|
DialogCallbackHandler()
The constructor to create a callback dialog with the default parent window. |
|
DialogCallbackHandler(String title)
The constructor to create a callback dialog with the default parent window. |
|
DialogCallbackHandler(String title,
String username,
String password)
The constructor to create a callback dialog with the default parent window. |
|
DialogCallbackHandler(String title,
String username,
String password,
String loginButton,
String cancelButton,
int usernameLength,
int passwordLength,
char echoChar)
The constructor to create a callback dialog with the default parent window. |
Method Summary | |
---|---|
void |
handle(Callback[] callbacks)
Invoke an array of Callbacks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DialogCallbackHandler()
public DialogCallbackHandler(String title)
title
- the title of the dialog boxpublic DialogCallbackHandler(String title, String username, String password)
title
- the title of the dialog boxusername
- the label of the username labelpassword
- the label of the password labelpublic DialogCallbackHandler(String title, String username, String password, String loginButton, String cancelButton, int usernameLength, int passwordLength, char echoChar)
title
- the title of the dialog boxusername
- the label of the username labelpassword
- the label of the password labelloginButton
- the label of the login buttoncancelButton
- the label of the cancel buttonusernameLength
- the length of the username fieldpasswordLength
- the length of the password fieldechoChar
- the character to display when entering the password
implies that echoCharOn = trueMethod Detail |
---|
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle
in interface CallbackHandler
callbacks
- an array of Callback
objects which
contain the information requested by an underlying security
service to be retrieved or displayed.
IOException
- if an input or output error occurs.
UnsupportedCallbackException
- if the implementation of this
method does not support one or more of the Callbacks specified
in the callbacks
parameter.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |