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(String user,
String password)
Throws by default.
|
protected void |
changePassword(String user,
String password,
PasswordUtil.METHOD method)
Actually perform the password change in the database and log the event against the user.
|
Boolean |
checkPassword(String user,
String password,
boolean readOnly)
Retrieves password from the database and calls
ConfigurablePasswordProvider.comparePasswords(String, String) . |
boolean |
hasPassword(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(String user)
ConfigurablePasswordProvider
hasPassword
in interface PasswordProvider
hasPassword
in class ConfigurablePasswordProvider
public Boolean checkPassword(String user, 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(String user, String password) throws PasswordChangeException
ConfigurablePasswordProvider
changePassword
in interface PasswordProvider
changePassword
in class ConfigurablePasswordProvider
PasswordChangeException
protected void changePassword(String user, 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.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.