ome.security.auth
Class JdbcPasswordProvider
java.lang.Object
ome.security.auth.ConfigurablePasswordProvider
ome.security.auth.JdbcPasswordProvider
- All Implemented Interfaces:
- PasswordProvider, PasswordUtility, org.springframework.context.ApplicationContextAware
public class JdbcPasswordProvider
- extends ConfigurablePasswordProvider
Central PasswordProvider
which uses the "password" table in the
central OMERO database.
- Since:
- 4.0
- Author:
- Josh Moore, josh at glencoesoftware.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JdbcPasswordProvider
public JdbcPasswordProvider(PasswordUtil util)
JdbcPasswordProvider
public JdbcPasswordProvider(PasswordUtil util,
boolean ignoreUnknown)
hasPassword
public boolean hasPassword(String user)
- Description copied from class:
ConfigurablePasswordProvider
- Always returns false, override with specific logic.
- Specified by:
hasPassword
in interface PasswordProvider
- Overrides:
hasPassword
in class ConfigurablePasswordProvider
checkPassword
public Boolean checkPassword(String user,
String password,
boolean readOnly)
- Retrieves password from the database and calls
ConfigurablePasswordProvider.comparePasswords(String, String)
.
Uses default logic if user is unknown.
- Specified by:
checkPassword
in interface PasswordProvider
- Overrides:
checkPassword
in class ConfigurablePasswordProvider
changePassword
public void changePassword(String user,
String password)
throws PasswordChangeException
- Description copied from class:
ConfigurablePasswordProvider
- Throws by default.
- Specified by:
changePassword
in interface PasswordProvider
- Overrides:
changePassword
in class ConfigurablePasswordProvider
- Throws:
PasswordChangeException
OmeroJava Api
Version: 4.3.3-00d1137e-b2894
Copyright © 2009 The University of Dundee. All Rights Reserved.