public class JdbcPasswordProvider extends ConfigurablePasswordProvider
PasswordProvider
which uses the "password" table in the
central OMERO database.ctx, hash, ignoreUnknown, legacyUtil, log, salt, util
Constructor and Description |
---|
JdbcPasswordProvider(PasswordUtil util) |
JdbcPasswordProvider(PasswordUtil util,
boolean ignoreUnknown) |
JdbcPasswordProvider(PasswordUtil util,
boolean ignoreUnknown,
boolean salt) |
Modifier and Type | Method and Description |
---|---|
void |
changePassword(java.lang.String user,
java.lang.String password)
Throws by default.
|
protected void |
changePassword(java.lang.String user,
java.lang.String password,
PasswordUtil.METHOD method)
Actually perform the password change in the database and log the event against the user.
|
java.lang.Boolean |
checkPassword(java.lang.String user,
java.lang.String password,
boolean readOnly)
Retrieves password from the database and calls
ConfigurablePasswordProvider.comparePasswords(String, String) . |
boolean |
hasPassword(java.lang.String user)
Always returns false, override with specific logic.
|
comparePasswords, comparePasswords, comparePasswords, encodePassword, encodePassword, encodeSaltedPassword, loginAttempt, setApplicationContext, setLegacyUtil
public JdbcPasswordProvider(PasswordUtil util)
public JdbcPasswordProvider(PasswordUtil util, boolean ignoreUnknown)
public JdbcPasswordProvider(PasswordUtil util, boolean ignoreUnknown, boolean salt)
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.comparePasswords(String, String)
.
Uses default logic if user is unknown.checkPassword
in interface PasswordProvider
checkPassword
in class ConfigurablePasswordProvider
public void changePassword(java.lang.String user, java.lang.String password) throws PasswordChangeException
ConfigurablePasswordProvider
changePassword
in interface PasswordProvider
changePassword
in class ConfigurablePasswordProvider
PasswordChangeException
protected void changePassword(java.lang.String user, java.lang.String password, PasswordUtil.METHOD method) throws PasswordChangeException
user
- the name of the user whose password is to be changedpassword
- the password to prepare for storing in the tablemethod
- how the given password is to be storedPasswordChangeException
- if the operation failed
Version: 5.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.