org.objectweb.jonas.security.auth.callback.DialogCallbackHandler Class Reference

List of all members.

Public Member Functions

 DialogCallbackHandler ()
 DialogCallbackHandler (String title)
 DialogCallbackHandler (String title, String username, String password)
 DialogCallbackHandler (String title, String username, String password, String loginButton, String cancelButton, int usernameLength, int passwordLength, char echoChar)
void handle (Callback[] callbacks) throws IOException, UnsupportedCallbackException

Detailed Description

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

Florent Benoit. Integration in the JOnAS 3.1.2 tree

Definition at line 51 of file DialogCallbackHandler.java.


Constructor & Destructor Documentation

org.objectweb.jonas.security.auth.callback.DialogCallbackHandler.DialogCallbackHandler  ) 
 

The constructor to create a callback dialog with the default parent window.

Definition at line 129 of file DialogCallbackHandler.java.

org.objectweb.jonas.security.auth.callback.DialogCallbackHandler.DialogCallbackHandler String  title  ) 
 

The constructor to create a callback dialog with the default parent window

Parameters:
title the title of the dialog box

Definition at line 141 of file DialogCallbackHandler.java.

org.objectweb.jonas.security.auth.callback.DialogCallbackHandler.DialogCallbackHandler String  title,
String  username,
String  password
 

The constructor to create a callback dialog with the default parent window

Parameters:
title the title of the dialog box
username the label of the username label
password the label of the password label

Definition at line 153 of file DialogCallbackHandler.java.

org.objectweb.jonas.security.auth.callback.DialogCallbackHandler.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

Parameters:
title the title of the dialog box
username the label of the username label
password the label of the password label
loginButton the label of the login button
cancelButton the label of the cancel button
usernameLength the length of the username field
passwordLength the length of the password field
echoChar the character to display when entering the password implies that echoCharOn = true

Definition at line 173 of file DialogCallbackHandler.java.


Member Function Documentation

void org.objectweb.jonas.security.auth.callback.DialogCallbackHandler.handle Callback[]  callbacks  )  throws IOException, UnsupportedCallbackException
 

Invoke an array of Callbacks.

Parameters:
callbacks an array of Callback objects which contain the information requested by an underlying security service to be retrieved or displayed.
Exceptions:
java.io.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.

Definition at line 282 of file DialogCallbackHandler.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:07:39 2005 for JOnAS by  doxygen 1.3.9.1