com.eruces.teadmin.UserAndPasswordInfo
The UserAndPasswordInfo class represents an ERUCES Native user authenticated by SRP.
For more information see SRP.
Inheritance
- Inherits com.eruces.teadmin.PrincipalInfo
Public Member Functions
| Member | Description |
|---|---|
UserAndPasswordInfo() | The UserAndPasswordInfo constructor is the default class constructor. |
UserAndPasswordInfo(long nPrincipalID) | The UserAndPasswordInfo constructor specifies a principal ID. |
UserAndPasswordInfo(int nSystemID, long nPrincipalID) | The UserAndPasswordInfo constructor specifies a system ID and a principal ID. |
String getPrincipalName() | The getPrincipalName method gets a principal name. |
String getUserName() | The getUserName method gets a username. |
void setUserName(String strUser) | The setUsername method sets a username. |
void setPassword(String strAdderPasswd, String strPasswd) | The setPassword method sets a password. |
boolean equals(Object anotherInfo) | The equals method compares two principals. |
String toString() | The toString method converts UserAndPasswordInfo data to a string. |
Member Function Documentation
UserAndPasswordInfo()
The UserAndPasswordInfo constructor is the default class constructor.
UserAndPasswordInfo(long nPrincipalID)
The UserAndPasswordInfo constructor specifies a principal ID.
Parameters
| Parameter | Description |
|---|---|
nPrincipalID | An integer representing a principal ID. |
UserAndPasswordInfo(int nSystemID, long nPrincipalID)
The UserAndPasswordInfo constructor specifies a system ID and a principal ID.
Parameters
| Parameter | Description |
|---|---|
nSystemID | An integer representing a system ID. |
nPrincipalID | An integer representing a principal ID. |
String getPrincipalName()
The getPrincipalName method gets a principal name.
Returns: Returns a string representing a principal name.
Remark: Specified by the getPrincipalName method in the PrincipalInfo class.
String getUserName()
The getUserName method gets a username.
Returns: Returns a string representing a username.
void setUserName(String strUser)
The setUsername method sets a username.
Parameters
| Parameter | Description |
|---|---|
strUser | A string representing a username. |
void setPassword(String strAdderPasswd, String strPasswd)
The setPassword method sets a password.
Parameters
| Parameter | Description |
|---|---|
strAdderPasswd | A string representing the password of the person adding the new password. |
strPasswd | A string representing the new password. |
boolean equals(Object anotherInfo)
The equals method compares two principals.
Parameters
| Parameter | Description |
|---|---|
anotherInfo | A principal to which the current principal will be compared. |
Returns: Returns a boolean value indicating whether the two principals are the same; True = principals are the same, False = principals are different. The principals are the same if their names or principal IDs are the same.
Remark: Specified by the equals method in the PrincipalInfo class.
String toString()
The toString method converts UserAndPasswordInfo data to a string.
Returns: Returns a string representing UserAndPasswordInfo data.
Remark: Overrides the toString method in the PrincipalInfo class.