|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jac.aspects.authentication.PasswordAuthenticator
This Authenticator ask for a username and password. The number of allowed attempts to enter a valid (username,password) is configurable. It needs a DisplayContext attribute in order to be able to interact with the user.
Constructor Summary | |
PasswordAuthenticator()
The default constructor with 3 retries in case of failing. |
|
PasswordAuthenticator(int retries)
This constructor can be used to parametrize the number of retries. |
Method Summary | |
void |
askUsernameAndPassword(String username,
String password)
This empty method is used to popup a dialog on the current display so that the user can fill in the authentication information. |
String |
authenticate()
This method perform the authentication by calling the askUserNameAndPassword and checkPassword methods. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PasswordAuthenticator()
public PasswordAuthenticator(int retries)
retries
- the number of retriesMethod Detail |
public String authenticate() throws AuthenticationFailedException
authenticate
in interface Authenticator
AuthenticationFailedException
askUsernameAndPassword(String,String)
,
#checkPassword(String,String)
public void askUsernameAndPassword(String username, String password)
username
- the usernamepassword
- the password
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |