uk.org.ogsadai.common.rolemap
Class DatabaseRole
java.lang.Object
|
+--uk.org.ogsadai.common.rolemap.DatabaseRole
- All Implemented Interfaces:
- Role
- public class DatabaseRole
- extends java.lang.Object
- implements Role
A class representing a database role (a user ID and password).
- Author:
- The OGSA-DAI Team
Constructor Summary |
DatabaseRole()
Create a DatabaseRole with null user ID and password. |
DatabaseRole(java.lang.String userid, java.lang.String password)
Create a DatabaseRole with a given user ID and password. |
Method Summary |
java.lang.String |
getPassword()
Get the password. |
java.lang.String |
getUserId()
Get the user ID. |
void |
setPassword(java.lang.String password)
Set the password. |
void |
setUserId(java.lang.String userid)
Set the user ID. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT_NOTICE
private static final java.lang.String COPYRIGHT_NOTICE
-
- See Also:
- Constant Field Values
mUserID
private java.lang.String mUserID
-
mPassword
private java.lang.String mPassword
-
DatabaseRole
public DatabaseRole()
-
Create a
DatabaseRole
with null
user ID and password.
DatabaseRole
public DatabaseRole(java.lang.String userid,
java.lang.String password)
-
Create a
DatabaseRole
with a given user ID and password.
- Parameters:
userid
- The user ID.
password
- The password.
getUserId
public java.lang.String getUserId()
-
Get the user ID.
-
-
- Returns:
- user ID.
getPassword
public java.lang.String getPassword()
-
Get the password.
-
-
- Returns:
- password.
setUserId
public void setUserId(java.lang.String userid)
-
Set the user ID.
-
-
- Parameters:
userid
- The user ID.
setPassword
public void setPassword(java.lang.String password)
-
Set the password.
-
-
- Parameters:
password
- The password.