version 1.41, 2008/12/16 18:55:59
|
version 1.41.8.2, 2013/07/20 18:32:39
|
|
|
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
/** | /** |
This class keeps the authentication information of a connection | This class keeps the authentication information of a connection |
persistent until the connection is destroyed. | persistent until the connection is destroyed. |
|
|
/** Constructor - Instantiates a AuthenticationInfo object. | /** Constructor - Instantiates a AuthenticationInfo object. |
@param flag - used only to distinguish from the default constructor. | @param flag - used only to distinguish from the default constructor. |
*/ | */ |
AuthenticationInfo(Boolean flag) |
AuthenticationInfo(Boolean) |
{ | { |
PEG_METHOD_ENTER( | PEG_METHOD_ENTER( |
TRC_AUTHENTICATION, "AuthenticationInfo::AuthenticationInfo"); | TRC_AUTHENTICATION, "AuthenticationInfo::AuthenticationInfo"); |
| |
_rep = new AuthenticationInfoRep(flag); |
_rep = new AuthenticationInfoRep(); |
| |
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
} | } |
|
|
return _rep->getRemotePrivilegedUserAccessChecked(); | return _rep->getRemotePrivilegedUserAccessChecked(); |
} | } |
| |
|
void setAuthHandle(const AuthHandle & authHandle) |
|
{ |
|
CheckRep(_rep); |
|
_rep->setAuthHandle(authHandle); |
|
} |
|
|
|
AuthHandle getAuthHandle() |
|
{ |
|
CheckRep(_rep); |
|
return _rep->getAuthHandle(); |
|
} |
|
|
|
void setUserRole(const String & userRole) |
|
{ |
|
CheckRep(_rep); |
|
_rep->setUserRole(userRole); |
|
} |
|
|
|
String getUserRole() |
|
{ |
|
CheckRep(_rep); |
|
return _rep->getUserRole(); |
|
} |
|
|
|
void setExpiredPassword(Boolean status) |
|
{ |
|
CheckRep(_rep); |
|
_rep->setExpiredPassword(status); |
|
} |
|
|
|
Boolean isExpiredPassword() const |
|
{ |
|
CheckRep(_rep); |
|
return _rep->isExpiredPassword(); |
|
} |
|
|
private: | private: |
| |
AuthenticationInfo(AuthenticationInfoRep* rep) : _rep(rep) | AuthenticationInfo(AuthenticationInfoRep* rep) : _rep(rep) |