xref: /netbsd-src/external/bsd/openldap/dist/contrib/ldapc++/src/LDAPSaslBindResult.h (revision a5847cc334d9a7029f6352b847e9e8d71a0f9e0c)
1 /*	$NetBSD: LDAPSaslBindResult.h,v 1.1.1.2 2010/03/08 02:14:20 lukem Exp $	*/
2 
3 // OpenLDAP: pkg/ldap/contrib/ldapc++/src/LDAPSaslBindResult.h,v 1.1.2.2 2008/04/14 23:09:26 quanah Exp
4 /*
5  * Copyright 2007, OpenLDAP Foundation, All Rights Reserved.
6  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
7  */
8 
9 #ifndef LDAP_SASL_BIND_RESULT_H
10 #define LDAP_SASL_BIND_RESULT_H
11 
12 #include <ldap.h>
13 
14 #include <LDAPResult.h>
15 
16 class LDAPRequest;
17 
18 /**
19  * Object of this class are created by the LDAPMsg::create method if
20  * results for an Extended Operation were returned by a LDAP server.
21  */
22 class LDAPSaslBindResult : public LDAPResult {
23     public :
24         /**
25          * Constructor that creates an LDAPExtResult-object from the C-API
26          * structures
27          */
28         LDAPSaslBindResult(const LDAPRequest* req, LDAPMessage* msg);
29 
30         /**
31          * The Destructor
32          */
33         virtual ~LDAPSaslBindResult();
34 
35         /**
36          * @returns If the result contained data this method will return
37          *          the data to the caller as a std::string.
38          */
39         const std::string& getServerCreds() const;
40 
41     private:
42         std::string m_creds;
43 };
44 
45 #endif // LDAP_SASL_BIND_RESULT_H
46