1 /* $NetBSD: LDAPSaslBindResult.h,v 1.3 2021/08/14 16:14:49 christos Exp $ */ 2 3 // $OpenLDAP$ 4 /* 5 * Copyright 2007-2021 The 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