|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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(java.lang.String title)
The constructor to create a callback dialog with the default parent window. |
|
DialogCallbackHandler(java.lang.String title,
java.lang.String username,
java.lang.String password)
The constructor to create a callback dialog with the default parent window. |
|
DialogCallbackHandler(java.lang.String title,
java.lang.String username,
java.lang.String password,
java.lang.String loginButton,
java.lang.String cancelButton,
int usernameLength,
int passwordLength,
char echoChar)
The constructor to create a callback dialog with the default parent window. |
|
| Method Summary | |
|---|---|
void |
handle(javax.security.auth.callback.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(java.lang.String title)
title - the title of the dialog box
public DialogCallbackHandler(java.lang.String title,
java.lang.String username,
java.lang.String password)
title - the title of the dialog boxusername - the label of the username labelpassword - the label of the password label
public DialogCallbackHandler(java.lang.String title,
java.lang.String username,
java.lang.String password,
java.lang.String loginButton,
java.lang.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 = true| Method Detail |
|---|
public void handle(javax.security.auth.callback.Callback[] callbacks)
throws java.io.IOException,
javax.security.auth.callback.UnsupportedCallbackException
handle in interface javax.security.auth.callback.CallbackHandlercallbacks - an array of Callback objects which
contain the information requested by an underlying security
service to be retrieved or displayed.
java.io.IOException - if an input or output error occurs.
javax.security.auth.callback.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 | |||||||||