Package ome.security.auth
Class JdbcHashedPasswordProvider
- java.lang.Object
-
- ome.security.auth.ConfigurablePasswordProvider
-
- ome.security.auth.JdbcPasswordProvider
-
- ome.security.auth.JdbcHashedPasswordProvider
-
- All Implemented Interfaces:
PasswordProvider
,PasswordUtility
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class JdbcHashedPasswordProvider extends JdbcPasswordProvider
CentralPasswordProvider
which uses the "password" table in the central OMERO database. When setting a password, stores password as-is into database, so it must be properly hashed already.
-
-
Field Summary
-
Fields inherited from class ome.security.auth.ConfigurablePasswordProvider
ctx, hash, ignoreUnknown, legacyUtil, log, salt, util
-
-
Constructor Summary
Constructors Constructor Description JdbcHashedPasswordProvider(PasswordUtil util)
JdbcHashedPasswordProvider(PasswordUtil util, boolean ignoreUnknown)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changePassword(java.lang.String user, java.lang.String md5password)
Throws by default.-
Methods inherited from class ome.security.auth.JdbcPasswordProvider
changePassword, checkPassword, hasPassword
-
Methods inherited from class ome.security.auth.ConfigurablePasswordProvider
comparePasswords, comparePasswords, comparePasswords, encodePassword, encodePassword, encodeSaltedPassword, loginAttempt, setApplicationContext, setLegacyUtil
-
-
-
-
Constructor Detail
-
JdbcHashedPasswordProvider
public JdbcHashedPasswordProvider(PasswordUtil util)
-
JdbcHashedPasswordProvider
public JdbcHashedPasswordProvider(PasswordUtil util, boolean ignoreUnknown)
-
-
Method Detail
-
changePassword
public void changePassword(java.lang.String user, java.lang.String md5password) throws PasswordChangeException
Description copied from class:ConfigurablePasswordProvider
Throws by default.- Specified by:
changePassword
in interfacePasswordProvider
- Overrides:
changePassword
in classJdbcPasswordProvider
- Throws:
PasswordChangeException
-
-