version 1.18, 2003/10/22 14:26:01
|
version 1.18.4.2, 2004/04/25 20:39:57
|
|
|
// Author: Nag Boranna, Hewlett-Packard Company (nagaraja_boranna@hp.com) | // Author: Nag Boranna, Hewlett-Packard Company (nagaraja_boranna@hp.com) |
// | // |
// Modified By: Jair Santos, Hewlett-Packard Company (jair.santos@hp.com) | // Modified By: Jair Santos, Hewlett-Packard Company (jair.santos@hp.com) |
|
// Heather Sterling, IBM (hsterl@us.ibm.com) |
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
|
|
#include <Pegasus/Common/Tracer.h> | #include <Pegasus/Common/Tracer.h> |
#include <Pegasus/Common/AuthenticationInfoRep.h> | #include <Pegasus/Common/AuthenticationInfoRep.h> |
#include <Pegasus/Common/Linkage.h> | #include <Pegasus/Common/Linkage.h> |
|
#include <Pegasus/Common/SSLContext.h> |
| |
#ifdef PEGASUS_KERBEROS_AUTHENTICATION | #ifdef PEGASUS_KERBEROS_AUTHENTICATION |
#include <Pegasus/Common/CIMKerberosSecurityAssociation.h> | #include <Pegasus/Common/CIMKerberosSecurityAssociation.h> |
|
|
} | } |
#endif | #endif |
| |
|
#ifdef PEGASUS_USE_232_CLIENT_VERIFICATION |
|
#ifdef PEGASUS_HAS_SSL |
|
/** Retrieves the SSL Certificate object |
|
*/ |
|
SSLCertificateInfo* getPeerCertificate() const |
|
{ |
|
_checkRep(); |
|
return _rep->getPeerCertificate(); |
|
} |
|
|
|
/** Set the SSL Certificate object |
|
*/ |
|
void setPeerCertificate(SSLCertificateInfo* peerCertificate) |
|
{ |
|
_checkRep(); |
|
_rep->setPeerCertificate(peerCertificate); |
|
} |
|
|
|
/** Retrieves the SSL Certificate status object |
|
Returns one of the following values from SSLSocket |
|
enum certificateStatusFlag |
|
{ |
|
VERIFICATION_DISABLED, //no request for certificate is sent |
|
NO_CERT, //certificate is requested, but client does not send one |
|
CERT_SUCCESS, //certificate is received and verified against truststore |
|
CERT_FAILURE //certificate is received but fails verification against truststore |
|
}; |
|
*/ |
|
Sint32 getCertificateStatus() const |
|
{ |
|
_checkRep(); |
|
return _rep->getCertificateStatus(); |
|
} |
|
|
|
/** Sets the certificate status to one of the above values from SSLSocket |
|
*/ |
|
void setCertificateStatus(Sint32 certificateStatus) |
|
{ |
|
_checkRep(); |
|
_rep->setCertificateStatus(certificateStatus); |
|
} |
|
#endif |
|
#endif |
|
|
private: | private: |
| |
AuthenticationInfo(AuthenticationInfoRep* rep) : _rep(rep) | AuthenticationInfo(AuthenticationInfoRep* rep) : _rep(rep) |