version 1.17.2.1, 2007/04/03 19:01:44
|
version 1.18, 2006/09/29 17:38:12
|
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Nag Boranna, Hewlett-Packard Company(nagaraja_boranna@hp.com) |
|
// |
|
// Modified By: Jair Santos, Hewlett-Packard Company(jair.santos@hp.com) |
|
// Heather Sterling, IBM (hsterl@us.ibm.com) |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#ifndef Pegasus_AuthenticationInfoRep_h | #ifndef Pegasus_AuthenticationInfoRep_h |
|
|
class PEGASUS_COMMON_LINKAGE AuthenticationInfoRep : public Sharable | class PEGASUS_COMMON_LINKAGE AuthenticationInfoRep : public Sharable |
{ | { |
public: | public: |
|
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 |
|
|
| |
~AuthenticationInfoRep(); | ~AuthenticationInfoRep(); |
| |
void setConnectionAuthenticated(Boolean connectionAuthenticated); |
AuthStatus getAuthStatus() const |
|
{ |
|
return _authStatus; |
|
} |
|
|
|
void setAuthStatus(AuthStatus status); |
| |
String getAuthenticatedUser() const | String getAuthenticatedUser() const |
{ | { |
|
|
| |
void setPrivileged(Boolean privileged); | void setPrivileged(Boolean privileged); |
| |
Boolean isConnectionAuthenticated() const |
Boolean isAuthenticated() const |
{ | { |
return _connectionAuthenticated; |
return (_authStatus == AUTHENTICATED) ? true : false; |
} | } |
| |
String getAuthType() const | String getAuthType() const |
|
|
void setSecurityAssociation(); | void setSecurityAssociation(); |
#endif | #endif |
| |
Boolean isExportConnection() const |
|
{ |
|
return _exportConnection; |
|
} |
|
|
|
void setExportConnection(Boolean exportConnection); |
|
|
|
//PEP187 | //PEP187 |
Array<SSLCertificateInfo*> getClientCertificateChain() | Array<SSLCertificateInfo*> getClientCertificateChain() |
{ | { |
|
|
} | } |
| |
//PEP187 | //PEP187 |
void setClientCertificateChain(Array<SSLCertificateInfo*> clientCertificate); |
void setClientCertificateChain(Array<SSLCertificateInfo*> |
|
clientCertificate); |
| |
private: | private: |
| |
|
|
String _authSecret; | String _authSecret; |
Boolean _privileged; | Boolean _privileged; |
String _authType; | String _authType; |
Boolean _connectionAuthenticated; |
AuthStatus _authStatus; |
#ifdef PEGASUS_KERBEROS_AUTHENTICATION | #ifdef PEGASUS_KERBEROS_AUTHENTICATION |
AutoPtr<CIMKerberosSecurityAssociation> _securityAssoc;//PEP101 | AutoPtr<CIMKerberosSecurityAssociation> _securityAssoc;//PEP101 |
#endif | #endif |
| |
Boolean _exportConnection; |
|
Array<SSLCertificateInfo*> _clientCertificate; | Array<SSLCertificateInfo*> _clientCertificate; |
}; | }; |
| |