org.jwall.web.audit.util
Class PasswordFileAuthenticator
java.lang.Object
org.jwall.web.audit.util.SimplePasswordAuthenticator
org.jwall.web.audit.util.PasswordFileAuthenticator
- All Implemented Interfaces:
- Authenticator
public class PasswordFileAuthenticator
- extends SimplePasswordAuthenticator
This extension of the SimplePasswordAuthenticator class simply reads users and
groups from files which are given to the constructor at instantiation time.
The user file is expected to have one line of the format
user=password
for each user. The password is supposed to be in plaintext. The group file is supposed to have a
line for each group, i.e.
group1=user1,user2,user3
Similar to the standard unix password/group format.
- Author:
- Christian Bockermann <chris@jwall.org>
PasswordFileAuthenticator
public PasswordFileAuthenticator(File usersFile,
File groupFile)
throws IOException
- This creates a new authenticator which reads users from the given file
usersFile.
The group information is read from groupFile.
- Parameters:
usersFile - groupFile -
- Throws:
IOException
PasswordFileAuthenticator
public PasswordFileAuthenticator(File usersFile,
File groupFile,
MessageDigest messageDigest)
throws IOException
- This creates a new authenticator in the same manner as the above constructor does. It additionally
allows for the specification of a message digest algorithm, which is used to compute a digest of
the password before comparing it during authentication.
- Parameters:
usersFile - groupFile - messageDigest -
- Throws:
IOException
Copyright © 2012 jwall.org. All Rights Reserved.