version 1.11, 2004/05/21 20:57:00
|
version 1.15.18.1, 2006/02/10 16:09:29
|
|
|
//%2003//////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Development |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Company, L. P., IBM Corp., The Open Group, Tivoli Systems. |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; | // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; |
// IBM Corp.; EMC Corporation, The Open Group. | // IBM Corp.; EMC Corporation, The Open Group. |
|
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
#define Pegasus_AuthenticationInfoRep_h | #define Pegasus_AuthenticationInfoRep_h |
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
|
#include <Pegasus/Common/ArrayInternal.h> |
#include <Pegasus/Common/String.h> | #include <Pegasus/Common/String.h> |
#include <Pegasus/Common/Sharable.h> | #include <Pegasus/Common/Sharable.h> |
#include <Pegasus/Common/Linkage.h> | #include <Pegasus/Common/Linkage.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. |
|
//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 |
|
//string here to make it less arbitrary. PEP165 |
|
static const String AUTH_TYPE_SSL; |
|
|
AuthenticationInfoRep(Boolean flag); | AuthenticationInfoRep(Boolean flag); |
| |
~AuthenticationInfoRep(); | ~AuthenticationInfoRep(); |
|
|
void setSecurityAssociation(); | void setSecurityAssociation(); |
#endif | #endif |
| |
SSLCertificateInfo* getPeerCertificate() const |
Boolean isExportConnection() const |
{ | { |
return _peerCertificate; |
return _exportConnection; |
} | } |
| |
void setPeerCertificate(SSLCertificateInfo* peerCertificate); |
void setExportConnection(Boolean exportConnection); |
| |
Boolean isExportConnection() const |
//PEP187 |
|
Array<SSLCertificateInfo*> getClientCertificateChain() |
{ | { |
return _exportConnection; |
return _clientCertificate; |
} | } |
| |
void setExportConnection(Boolean exportConnection); |
//PEP187 |
|
void setClientCertificateChain(Array<SSLCertificateInfo*> clientCertificate); |
| |
private: | private: |
| |
|
|
AutoPtr<CIMKerberosSecurityAssociation> _securityAssoc;//PEP101 | AutoPtr<CIMKerberosSecurityAssociation> _securityAssoc;//PEP101 |
#endif | #endif |
| |
SSLCertificateInfo* _peerCertificate; //PEP165 |
|
Boolean _exportConnection; | Boolean _exportConnection; |
|
Array<SSLCertificateInfo*> _clientCertificate; |
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |