]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/src/LDAPSaslBindResult.h
initial support for SASL
[openldap] / contrib / ldapc++ / src / LDAPSaslBindResult.h
1 /*
2  * Copyright 2007, OpenLDAP Foundation, All Rights Reserved.
3  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
4  */
5
6 #ifndef LDAP_SASL_BIND_RESULT_H
7 #define LDAP_SASL_BIND_RESULT_H
8
9 #include <ldap.h>
10
11 #include <LDAPResult.h>
12
13 class LDAPRequest;
14
15 /**
16  * Object of this class are created by the LDAPMsg::create method if
17  * results for an Extended Operation were returned by a LDAP server.
18  */
19 class LDAPSaslBindResult : public LDAPResult {
20     public :
21         /**
22          * Constructor that creates an LDAPExtResult-object from the C-API
23          * structures
24          */
25         LDAPSaslBindResult(const LDAPRequest* req, LDAPMessage* msg);
26
27         /**
28          * The Destructor
29          */
30         virtual ~LDAPSaslBindResult();
31
32         /**
33          * @returns If the result contained data this method will return
34          *          the data to the caller as a std::string.
35          */
36         const std::string& getServerCreds() const;
37
38     private:
39         std::string m_creds;
40 };
41
42 #endif // LDAP_SASL_BIND_RESULT_H