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 this was constructed with the
ignoreUnknown argument set to
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
ignoreUnknown
argument set to
true
, returns null
, since the base class knows no users.
Otherwise, returns 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.3.5-ice35-b73
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.