public class FilePasswordProvider extends ConfigurablePasswordProvider
provider
.
Changing passwords is not supported.Modifier and Type | Field and Description |
---|---|
protected File |
file
Flat file read on each invocation with name, value pairs in Java
Properties notation. |
ctx, hash, ignoreUnknown, legacyUtil, log, salt, util
Constructor and Description |
---|
FilePasswordProvider(PasswordUtil util,
File file) |
FilePasswordProvider(PasswordUtil util,
File file,
boolean ignoreUnknown) |
Modifier and Type | Method and Description |
---|---|
Boolean |
checkPassword(String user,
String password,
boolean readOnly)
If
ConfigurablePasswordProvider.ignoreUnknown is true, returns null, since the base class
knows no users. |
protected Boolean |
doCheckPassword(String user,
String password,
Properties p,
boolean readOnly) |
protected Properties |
getProperties() |
boolean |
hasPassword(String user)
Always returns false, override with specific logic.
|
changePassword, comparePasswords, comparePasswords, comparePasswords, encodePassword, encodePassword, encodeSaltedPassword, loginAttempt, setApplicationContext, setLegacyUtil
protected final File file
Properties
notation.public FilePasswordProvider(PasswordUtil util, File file)
public FilePasswordProvider(PasswordUtil util, File file, boolean ignoreUnknown)
public boolean hasPassword(String user)
ConfigurablePasswordProvider
hasPassword
in interface PasswordProvider
hasPassword
in class ConfigurablePasswordProvider
public Boolean checkPassword(String user, String password, boolean readOnly)
ConfigurablePasswordProvider
ConfigurablePasswordProvider.ignoreUnknown
is true, returns null, since the base class
knows no users. Otherwise, return Boolean.FALSE
specifying that
authentication should fail.checkPassword
in interface PasswordProvider
checkPassword
in class ConfigurablePasswordProvider
protected Boolean doCheckPassword(String user, String password, Properties p, boolean readOnly)
protected Properties getProperties()
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.