version 1.41.8.3, 2014/04/28 00:29:12
|
version 1.42, 2012/12/13 14:38:54
|
|
|
#include <Pegasus/Common/Linkage.h> | #include <Pegasus/Common/Linkage.h> |
#include <Pegasus/Common/SSLContext.h> | #include <Pegasus/Common/SSLContext.h> |
| |
|
#ifdef PEGASUS_KERBEROS_AUTHENTICATION |
|
#include <Pegasus/Common/CIMKerberosSecurityAssociation.h> |
|
#endif |
| |
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. |
|
|
} | } |
| |
| |
|
#ifdef PEGASUS_KERBEROS_AUTHENTICATION |
|
/** Get the CIM Security Association |
|
@return a pointer to the CIM Security Association |
|
*/ |
|
CIMKerberosSecurityAssociation* getSecurityAssociation() const |
|
{ |
|
CheckRep(_rep); |
|
return _rep->getSecurityAssociation(); |
|
} |
|
|
|
/** Set the CIM Security Association |
|
The pointer will only be set once. If it is already set it will |
|
not reset it. |
|
*/ |
|
void setSecurityAssociation() |
|
{ |
|
CheckRep(_rep); |
|
_rep->setSecurityAssociation(); |
|
} |
|
#endif |
|
|
Array<SSLCertificateInfo*> getClientCertificateChain() | Array<SSLCertificateInfo*> getClientCertificateChain() |
{ | { |
CheckRep(_rep); | CheckRep(_rep); |
|
|
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) |