Public Member Functions | |
String | getLogin () |
String | getName () |
String | getPassword () |
boolean | matches (String login, String password) |
boolean | equals (Object other) |
abstract String | getXml () |
Protected Member Functions | |
AbstractDatabaseUser (String login, String password) | |
Protected Attributes | |
String | login |
String | password |
AbstractDatabaseUser
is just a login/password combination to represent an abstract database user.
Definition at line 37 of file AbstractDatabaseUser.java.
|
Creates a new
Definition at line 52 of file AbstractDatabaseUser.java. 00053 { 00054 this.login = login; 00055 this.password = password; 00056 }
|
|
Two
Reimplemented in org.objectweb.cjdbc.common.users.DatabaseBackendUser. Definition at line 108 of file AbstractDatabaseUser.java. References org.objectweb.cjdbc.common.users.AbstractDatabaseUser.login, org.objectweb.cjdbc.common.users.AbstractDatabaseUser.matches(), and org.objectweb.cjdbc.common.users.AbstractDatabaseUser.password. Referenced by org.objectweb.cjdbc.controller.authentication.AuthenticationManager.isValidVirtualLogin(). 00109 { 00110 if ((other == null) || !(other instanceof AbstractDatabaseUser)) 00111 return false; 00112 00113 AbstractDatabaseUser user = (AbstractDatabaseUser) other; 00114 return matches(user.login, user.password); 00115 }
|
|
Gets the login name.
Definition at line 63 of file AbstractDatabaseUser.java. Referenced by org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.addBackend(), org.objectweb.cjdbc.controller.authentication.AuthenticationManager.addRealUser(), org.objectweb.cjdbc.common.users.AbstractDatabaseUser.getName(), org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabaseDynamicMetaData.getTablePrivileges(), org.objectweb.cjdbc.common.users.VirtualDatabaseUser.getXml(), and org.objectweb.cjdbc.controller.authentication.AuthenticationManager.isValidVirtualLogin(). 00064 {
00065 return login;
00066 }
|
|
Gets the login name.
Definition at line 73 of file AbstractDatabaseUser.java. References org.objectweb.cjdbc.common.users.AbstractDatabaseUser.getLogin(). Referenced by org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.addBackend(), and org.objectweb.cjdbc.controller.jmx.AuthenticatingMBeanServer.invoke(). 00074 { 00075 return getLogin(); 00076 }
|
|
Gets the password.
Definition at line 83 of file AbstractDatabaseUser.java. Referenced by org.objectweb.cjdbc.common.users.VirtualDatabaseUser.getXml(), and org.objectweb.cjdbc.controller.jmx.AuthenticatingMBeanServer.invoke(). 00084 {
00085 return password;
00086 }
|
|
Implemented in org.objectweb.cjdbc.common.users.AdminUser, org.objectweb.cjdbc.common.users.DatabaseBackendUser, and org.objectweb.cjdbc.common.users.VirtualDatabaseUser. |
|
Tests if the login and password provided matches the login/password of this object.
Definition at line 96 of file AbstractDatabaseUser.java. Referenced by org.objectweb.cjdbc.common.users.AbstractDatabaseUser.equals(). 00097 { 00098 return (this.login.equals(login) && this.password.equals(password)); 00099 }
|
|
Login name. Definition at line 40 of file AbstractDatabaseUser.java. Referenced by org.objectweb.cjdbc.common.users.DatabaseBackendUser.equals(), and org.objectweb.cjdbc.common.users.AbstractDatabaseUser.equals(). |
|
Password. Definition at line 43 of file AbstractDatabaseUser.java. Referenced by org.objectweb.cjdbc.common.users.DatabaseBackendUser.equals(), and org.objectweb.cjdbc.common.users.AbstractDatabaseUser.equals(). |