org.objectweb.jac.aspects.authentication
Class FilePasswordAuthenticator
java.lang.Object
|
+--org.objectweb.jac.aspects.authentication.PasswordAuthenticator
|
+--org.objectweb.jac.aspects.authentication.FilePasswordAuthenticator
- All Implemented Interfaces:
- Authenticator
- public class FilePasswordAuthenticator
- extends PasswordAuthenticator
This Authenticator ask for a username and password and compares
them to declared ones stored in a file. 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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilePasswordAuthenticator
public FilePasswordAuthenticator(String retries,
String passwordFilename)
- The constructor.
- Parameters:
retries
- the number of time the authenticator will ask the
user to retype wrong informationpasswordFilename
- the filename where the users are stored