version 1.19, 2006/10/20 18:06:02
|
version 1.25, 2007/03/16 18:22:30
|
|
|
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 |
//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 |
|
|
| |
~AuthenticationInfoRep(); | ~AuthenticationInfoRep(); |
| |
AuthStatus getAuthStatus() const |
void setConnectionAuthenticated(Boolean connectionAuthenticated); |
{ |
|
return _authStatus; |
|
} |
|
|
|
void setAuthStatus(AuthStatus status); |
|
| |
String getAuthenticatedUser() const | String getAuthenticatedUser() const |
{ | { |
|
|
| |
void setAuthenticatedPassword(const String& password); | void setAuthenticatedPassword(const String& password); |
| |
String getAuthChallenge() const |
String getLocalAuthSecret() const |
{ | { |
return _authChallenge; |
return _localAuthSecret; |
} | } |
| |
void setAuthChallenge(const String& challenge); |
void setLocalAuthSecret(const String& secret); |
| |
String getAuthSecret() const |
Boolean isConnectionAuthenticated() const |
{ | { |
return _authSecret; |
return _connectionAuthenticated; |
} |
|
|
|
void setAuthSecret(const String& secret); |
|
|
|
Boolean isPrivileged() const |
|
{ |
|
return _privileged; |
|
} |
|
|
|
void setPrivileged(Boolean privileged); |
|
|
|
Boolean isAuthenticated() const |
|
{ |
|
return (_authStatus == AUTHENTICATED) ? true : false; |
|
} | } |
| |
String getAuthType() const | String getAuthType() const |
|
|
void setSecurityAssociation(); | void setSecurityAssociation(); |
#endif | #endif |
| |
//PEP187 |
|
Array<SSLCertificateInfo*> getClientCertificateChain() | Array<SSLCertificateInfo*> getClientCertificateChain() |
{ | { |
return _clientCertificate; | return _clientCertificate; |
} | } |
| |
//PEP187 |
void setClientCertificateChain( |
void setClientCertificateChain(Array<SSLCertificateInfo*> |
Array<SSLCertificateInfo*> clientCertificate); |
clientCertificate); |
|
|
void setRemotePrivilegedUserAccessChecked() |
|
{ |
|
_wasRemotePrivilegedUserAccessChecked = true; |
|
} |
|
|
|
Boolean getRemotePrivilegedUserAccessChecked() |
|
{ |
|
return _wasRemotePrivilegedUserAccessChecked; |
|
} |
| |
private: | private: |
| |
|
|
| |
String _authUser; | String _authUser; |
String _authPassword; | String _authPassword; |
String _authChallenge; |
String _localAuthSecret; |
String _authSecret; |
|
Boolean _privileged; |
|
String _authType; | String _authType; |
AuthStatus _authStatus; |
Boolean _connectionAuthenticated; |
String _ipAddress; | String _ipAddress; |
#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; |
}; | }; |