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