クラス org.objectweb.cjdbc.controller.authentication.DatabaseBackendUser

org.objectweb.cjdbc.controller.authentication.DatabaseBackendUserに対する継承グラフ

Inheritance graph
[凡例]
org.objectweb.cjdbc.controller.authentication.DatabaseBackendUserのコラボレーション図

Collaboration graph
[凡例]
すべてのメンバ一覧

説明

A DatabaseBackendUser is a login/password combination to represent a database backend user.

作者:
Emmanuel Cecchet

Mathieu Peltier

バージョン:
1.0

DatabaseBackendUser.java36 行で定義されています。

Public メソッド

 DatabaseBackendUser (String backendName, String login, String password)
String getBackendName ()
boolean matches (String backendName, String login, String password)
boolean equals (Object other)
String getXml ()
String getLogin ()
String getName ()
String getPassword ()
boolean matches (String login, String password)

Protected 変数

String login
String password

Private 変数

String backendName


コンストラクタとデストラクタ

org.objectweb.cjdbc.controller.authentication.DatabaseBackendUser.DatabaseBackendUser String  backendName,
String  login,
String  password
 

Creates a new DatabaseBackendUser instance. The caller must ensure that the parameters are not null.

引数:
backendName the backend logical name.
login the user name.
password the password.

DatabaseBackendUser.java49 行で定義されています。

00050   {
00051     super(login, password);
00052     this.backendName = backendName;
00053   }


メソッド

boolean org.objectweb.cjdbc.controller.authentication.DatabaseBackendUser.equals Object  other  ) 
 

Two DatabaseBackendUser are equals if both objects have the same login & password.

引数:
other the object to compare with.
戻り値:
true if both objects have the same login & password.

org.objectweb.cjdbc.controller.authentication.AbstractDatabaseUserを再定義しています。

DatabaseBackendUser.java88 行で定義されています。

参照先 org.objectweb.cjdbc.controller.authentication.DatabaseBackendUser.backendName, org.objectweb.cjdbc.controller.authentication.AbstractDatabaseUser.login, と org.objectweb.cjdbc.controller.authentication.AbstractDatabaseUser.password.

00089   {
00090     if ((other == null) || !(other instanceof DatabaseBackendUser))
00091       return false;
00092 
00093     DatabaseBackendUser user = (DatabaseBackendUser) other;
00094     return (super.matches(user.login, user.password) && backendName
00095         .equals(user.backendName));
00096   }

String org.objectweb.cjdbc.controller.authentication.DatabaseBackendUser.getBackendName  ) 
 

Returns the backend logical name.

戻り値:
the backend logical name.

DatabaseBackendUser.java60 行で定義されています。

00061   {
00062     return backendName;
00063   }

String org.objectweb.cjdbc.controller.authentication.AbstractDatabaseUser.getLogin  )  [inherited]
 

Gets the login name.

戻り値:
the login name.

AbstractDatabaseUser.java63 行で定義されています。

参照元 org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabase.addBackend(), org.objectweb.cjdbc.controller.authentication.AuthenticationManager.addRealUser(), org.objectweb.cjdbc.controller.authentication.AbstractDatabaseUser.getName(), org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabaseMetaData.getTablePrivileges(), org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabaseWorkerThread.getUser(), org.objectweb.cjdbc.controller.authentication.VirtualDatabaseUser.getXml(), と org.objectweb.cjdbc.controller.authentication.AuthenticationManager.isValidVirtualLogin().

00064   {
00065     return login;
00066   }

String org.objectweb.cjdbc.controller.authentication.AbstractDatabaseUser.getName  )  [inherited]
 

Gets the login name.

戻り値:
the login name.

AbstractDatabaseUser.java73 行で定義されています。

参照先 org.objectweb.cjdbc.controller.authentication.AbstractDatabaseUser.getLogin().

参照元 org.objectweb.cjdbc.controller.jmx.AuthenticatingMBeanServer.invoke().

00074   {
00075     return getLogin();
00076   }

String org.objectweb.cjdbc.controller.authentication.AbstractDatabaseUser.getPassword  )  [inherited]
 

Gets the password.

戻り値:
the password.

AbstractDatabaseUser.java83 行で定義されています。

参照元 org.objectweb.cjdbc.controller.authentication.VirtualDatabaseUser.getXml(), と org.objectweb.cjdbc.controller.jmx.AuthenticatingMBeanServer.invoke().

00084   {
00085     return password;
00086   }

String org.objectweb.cjdbc.controller.authentication.DatabaseBackendUser.getXml  )  [virtual]
 

参照:
org.objectweb.cjdbc.common.xml.XmlComponent.getXml()

org.objectweb.cjdbc.controller.authentication.AbstractDatabaseUserに実装されています.

DatabaseBackendUser.java101 行で定義されています。

00102   {
00103     return "";
00104     //    return "<"
00105     //      + DatabasesXmlTags.ELT_RealLogin
00106     //      + " "
00107     //      + DatabasesXmlTags.ATT_backendName
00108     //      + "=\""
00109     //      + getBackendName()
00110     //      + "\" "
00111     //      + DatabasesXmlTags.ATT_rLogin
00112     //      + "=\""
00113     //      + getLogin()
00114     //      + "\" "
00115     //      + DatabasesXmlTags.ATT_rPassword
00116     //      + "=\""
00117     //      + getPassword()
00118     //      + "\"/>";
00119   }

boolean org.objectweb.cjdbc.controller.authentication.AbstractDatabaseUser.matches String  login,
String  password
[inherited]
 

Tests if the login and password provided matches the login/password of this object.

引数:
login a user name.
password a password.
戻り値:
true if it matches this object's login/password.

AbstractDatabaseUser.java96 行で定義されています。

参照元 org.objectweb.cjdbc.controller.authentication.AbstractDatabaseUser.equals().

00097   {
00098     return (this.login.equals(login) && this.password.equals(password));
00099   }

boolean org.objectweb.cjdbc.controller.authentication.DatabaseBackendUser.matches String  backendName,
String  login,
String  password
 

Tests if the login and password provided matches the login/password of this object.

引数:
backendName backend logical name
login a user name
password a password
戻り値:
true if it matches this object's login/password

DatabaseBackendUser.java74 行で定義されています。

00075   {
00076     return (super.matches(login, password) && this.backendName
00077         .equals(backendName));
00078   }


変数

String org.objectweb.cjdbc.controller.authentication.DatabaseBackendUser.backendName [private]
 

Backend logical name.

DatabaseBackendUser.java39 行で定義されています。

参照元 org.objectweb.cjdbc.controller.authentication.DatabaseBackendUser.equals().

String org.objectweb.cjdbc.controller.authentication.AbstractDatabaseUser.login [protected, inherited]
 

Login name.

AbstractDatabaseUser.java40 行で定義されています。

参照元 org.objectweb.cjdbc.controller.authentication.DatabaseBackendUser.equals(), と org.objectweb.cjdbc.controller.authentication.AbstractDatabaseUser.equals().

String org.objectweb.cjdbc.controller.authentication.AbstractDatabaseUser.password [protected, inherited]
 

Password.

AbstractDatabaseUser.java43 行で定義されています。

参照元 org.objectweb.cjdbc.controller.authentication.DatabaseBackendUser.equals(), と org.objectweb.cjdbc.controller.authentication.AbstractDatabaseUser.equals().


このクラスの説明は次のファイルから生成されました:
CJDBCversion1.0rcfに対してWed Jun 23 16:03:40 2004に生成されました。 doxygen 1.3.6