The AuthenticationManager manages the mapping between virtual
login/password (to the VirtualDatabase) and the real
login/password for each backend.
author: Emmanuel Cecchet author: Mathieu Peltier author: Nicolas Modrzyk version: 1.0
isValidAdminUser(AdminUser user) Checks whether this administrator user has been registered to this
AuthenticationManager or not.
public boolean
isValidVirtualLogin(String vLogin) Checks whether a given virtual login has been registered to this
AuthenticationManager or not.
Parameters: vLogin - the virtual database login.
public boolean
isValidVirtualUser(VirtualDatabaseUser vUser) Checks whether a given virtual database user has been registered to this
AuthenticationManager or not.
Parameters: vUser - the virtual database user.
Associates a new database backend user to a virtual database login.
Parameters: vLogin - the virtual database login. Parameters: rUser - the database backend user to add. exception: AuthenticationManagerException - if a real user already exists forthis backend.
Gets the DatabaseBackendUser given a virtual database login
and a database backend logical name.
Parameters: vLogin - virtual database login. Parameters: backendName - database backend logical name. a DatabaseBackendUser value or nullif not found.
Return the virtual password corresponding to the given virtual login
Parameters: vLogin - the virtual login the virtual password if found, null otherwise
Checks whether this administrator user has been registered to this
AuthenticationManager or not. Returns false
if no admin user has been set.
Parameters: user - administrator user login/password to check. true if it matches the registered admin user.
isValidVirtualLogin
public boolean isValidVirtualLogin(String vLogin)(Code)
Checks whether a given virtual login has been registered to this
AuthenticationManager or not.
Parameters: vLogin - the virtual database login. true if the virtual database login is valid.
Checks whether a given virtual database user has been registered to this
AuthenticationManager or not.
Parameters: vUser - the virtual database user. true if the user login/password is valid.