org.objectweb.jac.aspects.authentication
Class FilePasswordAuthenticator

java.lang.Object
  extended byorg.objectweb.jac.aspects.authentication.PasswordAuthenticator
      extended byorg.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.


Constructor Summary
FilePasswordAuthenticator(String retries, String passwordFilename)
          The constructor.
 
Methods inherited from class org.objectweb.jac.aspects.authentication.PasswordAuthenticator
askUsernameAndPassword, authenticate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePasswordAuthenticator

public FilePasswordAuthenticator(String retries,
                                 String passwordFilename)
The constructor.

Parameters:
retries - the number of time the authenticator will ask the user to retype wrong information
passwordFilename - the filename where the users are stored