com.anwrt.anycontent.plugins.core.users
Class AuthenticatingJdbcUsers

java.lang.Object
  extended bycom.anwrt.anycontent.plugins.core.users.JdbcUsers
      extended bycom.anwrt.anycontent.plugins.core.users.AuthenticatingJdbcUsers
All Implemented Interfaces:
AuthenticableBaseUsers, Users
Direct Known Subclasses:
AuthAndModifyingJdbcUsers

public class AuthenticatingJdbcUsers
extends JdbcUsers
implements AuthenticableBaseUsers

Use a jdbc driver for getting the list of users and also authenticating them.
Passwords need to be encrypted with MD5 and encoded in base64.
This driver depends of the deploy parameters needed by the JdbcUsers extension plus this parameter :
users.jdbc.passwdColumn: Name of the password column; String

See Also:
JdbcUsers

Nested Class Summary
 
Nested classes inherited from class com.anwrt.anycontent.plugins.core.users.JdbcUsers
JdbcUsers.InvalidParameterException
 
Field Summary
protected  java.lang.String _passwdColumn
          Name of the password column.
 
Fields inherited from class com.anwrt.anycontent.plugins.core.users.JdbcUsers
_emailColumn, _firstColumn, _lastColumn, _logger, _loginColumn, _tableName
 
Constructor Summary
AuthenticatingJdbcUsers()
           
 
Method Summary
 boolean authenticate(java.lang.String login, java.lang.String password)
          Authenticate a user with a pair of login / password.
 void initialize()
          Initialize the plugin with deploy parameters.
 
Methods inherited from class com.anwrt.anycontent.plugins.core.users.JdbcUsers
cleanup, configure, defaultValuesToSAX, errorInitialization, getConnectionPool, getDeployParameter, getPrincipal, getUsers, getUsersCount, isInitialize, resultSetToSAX, toSAX, toSAXInternal, useCore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.anwrt.anycontent.extensions.users.Users
configure, defaultValuesToSAX, getPrincipal, getUsers, toSAX
 

Field Detail

_passwdColumn

protected java.lang.String _passwdColumn
Name of the password column.

Constructor Detail

AuthenticatingJdbcUsers

public AuthenticatingJdbcUsers()
Method Detail

initialize

public void initialize()
Description copied from interface: Users
Initialize the plugin with deploy parameters.
Call once after configuration.

Specified by:
initialize in interface Users
Overrides:
initialize in class JdbcUsers

authenticate

public boolean authenticate(java.lang.String login,
                            java.lang.String password)
Description copied from interface: AuthenticableBaseUsers
Authenticate a user with a pair of login / password.

Specified by:
authenticate in interface AuthenticableBaseUsers
Parameters:
login - Login of the user.
password - Password to test in plain text.
Returns:
true if the user is authenticated, false otherwise.


Copyright © 2006 Anyware Technologies. All Rights Reserved.