public class FilePasswordProvider extends ConfigurablePasswordProvider
provider
.
Changing passwords is not supported.Modifier and Type | Field and Description |
---|---|
protected java.io.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,
java.io.File file) |
FilePasswordProvider(PasswordUtil util,
java.io.File file,
boolean ignoreUnknown) |
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
checkPassword(java.lang.String user,
java.lang.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 java.lang.Boolean |
doCheckPassword(java.lang.String user,
java.lang.String password,
java.util.Properties p,
boolean readOnly) |
protected java.util.Properties |
getProperties() |
boolean |
hasPassword(java.lang.String user)
Always returns false, override with specific logic.
|
changePassword, comparePasswords, comparePasswords, comparePasswords, encodePassword, encodePassword, encodeSaltedPassword, loginAttempt, setApplicationContext, setLegacyUtil
protected final java.io.File file
Properties
notation.public FilePasswordProvider(PasswordUtil util, java.io.File file)
public FilePasswordProvider(PasswordUtil util, java.io.File file, boolean ignoreUnknown)
public boolean hasPassword(java.lang.String user)
ConfigurablePasswordProvider
hasPassword
in interface PasswordProvider
hasPassword
in class ConfigurablePasswordProvider
public java.lang.Boolean checkPassword(java.lang.String user, java.lang.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 java.lang.Boolean doCheckPassword(java.lang.String user, java.lang.String password, java.util.Properties p, boolean readOnly)
protected java.util.Properties getProperties()
Version: 5.4.6-ice35-b87
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.