com.eruces.teagent.UPAuthenticationContext
The UPAuthenticationContext class implements ERUCES Native user and password authentication using SRP.
Inheritance
Public Member Functions
| Member | Description |
|---|---|
UPAuthenticationContext() | UPAuthenticationContext constructor is the default class constructor. |
void setUser(String strUser) | The setUser method sets a username. |
String getUser() | The getUser method gets a username. |
void setPasswd(String strPasswd) | The setPasswd method sets a password. |
void setSecret(Object objSec) | The setSecret method sets secret authentication information. |
Static Public Member Functions
| Member | Description |
|---|---|
UPAuthenticationContext getInstance() | Instance method if a factory method that gets an instance of the UPAuthenticationContext class. |
Member Function Documentation
UPAuthenticationContext()
UPAuthenticationContext constructor is the default class constructor.
void setUser(String strUser)
The setUser method sets a username.
Parameters
| Parameter | Description |
|---|---|
strUser | A string representing a username. |
String getUser()
The getUser method gets a username.
Returns: Returns a string representing a username.
void setPasswd(String strPasswd)
The setPasswd method sets a password.
Parameters
| Parameter | Description |
|---|---|
strPasswd | A string representing a password. |
void setSecret(Object objSec)
The setSecret method sets secret authentication information.
Parameters
| Parameter | Description |
|---|---|
objSec | A secret property object; both a username and a password object are needed. |
See also: For more details on implementation see SRP.
UPAuthenticationContext getInstance()
Instance method if a factory method that gets an instance of the UPAuthenticationContext class.
Returns: Returns a UPAuthenticationContext object.