Skip to main content

com.eruces.teagent.UPAuthenticationContext

The UPAuthenticationContext class implements ERUCES Native user and password authentication using SRP.

Inheritance

Public Member Functions

MemberDescription
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

MemberDescription
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

ParameterDescription
strUserA 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

ParameterDescription
strPasswdA string representing a password.

void setSecret(Object objSec)

The setSecret method sets secret authentication information.

Parameters

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