Skip to main content

com.eruces.teadmin.UserAndPasswordInfo

The UserAndPasswordInfo class represents an ERUCES Native user authenticated by SRP.

For more information see SRP.

Inheritance

Public Member Functions

MemberDescription
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

ParameterDescription
nPrincipalIDAn integer representing a principal ID.

UserAndPasswordInfo(int nSystemID, long nPrincipalID)

The UserAndPasswordInfo constructor specifies a system ID and a principal ID.

Parameters

ParameterDescription
nSystemIDAn integer representing a system ID.
nPrincipalIDAn 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

ParameterDescription
strUserA string representing a username.

void setPassword(String strAdderPasswd, String strPasswd)

The setPassword method sets a password.

Parameters

ParameterDescription
strAdderPasswdA string representing the password of the person adding the new password.
strPasswdA string representing the new password.

boolean equals(Object anotherInfo)

The equals method compares two principals.

Parameters

ParameterDescription
anotherInfoA 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.