version 1.19, 2006/10/20 18:06:02
|
version 1.22.2.1, 2007/01/05 00:32:31
|
|
|
#include <Pegasus/Common/Sharable.h> | #include <Pegasus/Common/Sharable.h> |
#include <Pegasus/Common/Linkage.h> | #include <Pegasus/Common/Linkage.h> |
#include <Pegasus/Common/SSLContext.h> | #include <Pegasus/Common/SSLContext.h> |
|
#include <Pegasus/Common/SessionKey.h> |
| |
#ifdef PEGASUS_KERBEROS_AUTHENTICATION | #ifdef PEGASUS_KERBEROS_AUTHENTICATION |
#include <Pegasus/Common/CIMKerberosSecurityAssociation.h> | #include <Pegasus/Common/CIMKerberosSecurityAssociation.h> |
|
|
public: | public: |
enum AuthStatus { NEW_REQUEST, CHALLENGE_SENT, AUTHENTICATED }; | enum AuthStatus { NEW_REQUEST, CHALLENGE_SENT, AUTHENTICATED }; |
| |
//ATTN: we should be using an enumeration for the authtype instead of a string. |
//ATTN: we should be using an enumeration for the authtype instead of a |
|
//string. |
//In the AuthenticationManager, the authtype is set to Basic, Digest, etc | //In the AuthenticationManager, the authtype is set to Basic, Digest, etc |
//We also need to be able to check whether the type is SSL, so I'm adding a | //We also need to be able to check whether the type is SSL, so I'm adding a |
//string here to make it less arbitrary. PEP165 | //string here to make it less arbitrary. PEP165 |
|
|
void setClientCertificateChain(Array<SSLCertificateInfo*> | void setClientCertificateChain(Array<SSLCertificateInfo*> |
clientCertificate); | clientCertificate); |
| |
|
void setRemotePrivilegedUserAccessChecked() |
|
{ |
|
_wasRemotePrivilegedUserAccessChecked = true; |
|
} |
|
|
|
Boolean getRemotePrivilegedUserAccessChecked() |
|
{ |
|
return _wasRemotePrivilegedUserAccessChecked; |
|
} |
|
|
|
void setSessionKey(const SessionKey& sessionKey) |
|
{ |
|
_sessionKey = sessionKey; |
|
} |
|
|
|
const SessionKey& getSessionKey() const |
|
{ |
|
return _sessionKey; |
|
} |
|
|
private: | private: |
| |
/** Constructors */ | /** Constructors */ |
|
|
#ifdef PEGASUS_KERBEROS_AUTHENTICATION | #ifdef PEGASUS_KERBEROS_AUTHENTICATION |
AutoPtr<CIMKerberosSecurityAssociation> _securityAssoc;//PEP101 | AutoPtr<CIMKerberosSecurityAssociation> _securityAssoc;//PEP101 |
#endif | #endif |
|
Boolean _wasRemotePrivilegedUserAccessChecked; |
| |
Array<SSLCertificateInfo*> _clientCertificate; | Array<SSLCertificateInfo*> _clientCertificate; |
|
SessionKey _sessionKey; |
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |