org.bibalex.daf.managers
Interface LoginDialog.ILoginActionListener

Enclosing class:
LoginDialog

public static interface LoginDialog.ILoginActionListener

An interface to be implemented by any class using this dialog, it is used in implementing the authentication code.

Author:
fadi.edward

Method Summary
 boolean authenticateUser(java.lang.String userName, char[] password)
          Authenticate the user with the given userName and password
 void cancelLogin()
          Indicates that the user cancelled the login operation
 boolean changePassword()
          Used to initiate the Changing password code.
 

Method Detail

authenticateUser

boolean authenticateUser(java.lang.String userName,
                         char[] password)
Authenticate the user with the given userName and password

Parameters:
userName - the User Name in the DB to authenticate with.
password - the password to authenticate against.
Returns:
true if this login is a correct user and password, false otherwise.

cancelLogin

void cancelLogin()
Indicates that the user cancelled the login operation


changePassword

boolean changePassword()
Used to initiate the Changing password code.

Returns:
true if the user changed his password successfully, false otherwise.