public class PasswordFileAuthenticator extends SimplePasswordAuthenticator
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.groups, md, users| Constructor and Description |
|---|
PasswordFileAuthenticator(File usersFile,
File groupFile)
This creates a new authenticator which reads users from the given file
usersFile. |
PasswordFileAuthenticator(File usersFile,
File groupFile,
MessageDigest messageDigest)
This creates a new authenticator in the same manner as the above constructor does.
|
public PasswordFileAuthenticator(File usersFile, File groupFile) throws IOException
usersFile.
The group information is read from groupFile.usersFile - groupFile - IOExceptionpublic PasswordFileAuthenticator(File usersFile, File groupFile, MessageDigest messageDigest) throws IOException
usersFile - groupFile - messageDigest - IOExceptionCopyright © 2015 jwall.org. All Rights Reserved.