version 1.31, 2006/11/10 18:14:57
|
version 1.31.4.1, 2007/03/23 17:36:53
|
|
|
{ | { |
public: | public: |
| |
/** Constructor - Creates an uninitiated new AuthenticationInfo |
/** Constructor - Creates an uninitialized new AuthenticationInfo |
object reprenting a AuthenticationInfo class. The class object |
object representing an AuthenticationInfo class. The class object |
created by this constructor can only be used in an operation such as the | created by this constructor can only be used in an operation such as the |
copy constructor. It cannot be used to do method calls like |
copy constructor. It cannot be used to do method calls such as |
setAuthStatus, getAuthType, etc. since it is unitiated. |
getAuthType, since it is uninitialized. |
| |
Use one of the other constructors to create an initiated new | Use one of the other constructors to create an initiated new |
AuthenticationInfo class object. Throws an exception | AuthenticationInfo class object. Throws an exception |
|
|
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
} | } |
| |
/** Get the authentication status of the request |
/** Sets the connection authentication status of the request to the |
@return the current authentication status |
status specified. |
*/ |
|
AuthenticationInfoRep::AuthStatus getAuthStatus() const |
|
{ |
|
_checkRep(); |
|
return _rep->getAuthStatus(); |
|
} |
|
|
|
/** Sets the authentication status of the request to the status |
|
specified. |
|
@param status - the new authentication status | @param status - the new authentication status |
*/ | */ |
void setAuthStatus(AuthenticationInfoRep::AuthStatus status) |
void setConnectionAuthenticated(Boolean status) |
{ | { |
_checkRep(); | _checkRep(); |
_rep->setAuthStatus(status); |
_rep->setConnectionAuthenticated(status); |
} | } |
| |
/** Get the previously authenticated user name | /** Get the previously authenticated user name |
|
|
/** Returns the authentication status of the current connection. | /** Returns the authentication status of the current connection. |
@return true if the connection was authenticated, false otherwise | @return true if the connection was authenticated, false otherwise |
*/ | */ |
Boolean isAuthenticated() const |
Boolean isConnectionAuthenticated() const |
{ | { |
_checkRep(); | _checkRep(); |
return _rep->isAuthenticated(); |
return _rep->isConnectionAuthenticated(); |
} | } |
| |
/** Set the authentication type to the specified type | /** Set the authentication type to the specified type |