#include <LDAPControl.h>
Public Member Functions | |
| LDAPCtrl (const char *oid, bool critical=false, const char *data=0, int length=0) | |
| Constructor. | |
| LDAPCtrl (const std::string &oid, bool critical, const std::string &data) | |
| Constructor. | |
| LDAPCtrl (const LDAPControl *ctrl) | |
| Creates a copy of the Control that "ctrl is pointing to. | |
| ~LDAPCtrl () | |
| Destructor. | |
| std::string | getOID () const |
| bool | hasData () const |
| std::string | getData () const |
| bool | isCritical () const |
| LDAPControl * | getControlStruct () const |
| For internal use only. | |
Static Public Member Functions | |
| static void | freeLDAPControlStruct (LDAPControl *ctrl) |
Private Attributes | |
| std::string | m_oid |
| std::string | m_data |
| bool | m_isCritical |
| bool | m_noData |
Controls are a mechanism to extend and modify LDAP-Operations.
| LDAPCtrl::LDAPCtrl | ( | const char * | oid, | |
| bool | critical = false, |
|||
| const char * | data = 0, |
|||
| int | length = 0 | |||
| ) |
Constructor.
| oid,: | The Object Identifier of the Control | |
| critical,: | "true" if the Control should be handled critical by the server. | |
| data,: | If there is data for the control, put it here. | |
| length,: | The length of the data field |
References DEBUG, LDAP_DEBUG_CONSTRUCT, LDAP_DEBUG_PARAMETER, m_data, m_isCritical, m_noData, and m_oid.
| LDAPCtrl::LDAPCtrl | ( | const std::string & | oid, | |
| bool | critical, | |||
| const std::string & | data | |||
| ) |
Constructor.
| oid,: | The Object Identifier of the Control | |
| critical,: | "true" if the Control should be handled critical by the server. | |
| data,: | If there is data for the control, put it here. |
| LDAPCtrl::LDAPCtrl | ( | const LDAPControl * | ctrl | ) |
Creates a copy of the Control that "ctrl is pointing to.
References DEBUG, LDAP_DEBUG_CONSTRUCT, and m_oid.
| LDAPCtrl::~LDAPCtrl | ( | ) |
| void LDAPCtrl::freeLDAPControlStruct | ( | LDAPControl * | ctrl | ) | [static] |
| LDAPControl * LDAPCtrl::getControlStruct | ( | ) | const |
For internal use only.
Translates the control to a LDAPControl-structure as needed by the C-API
References DEBUG, LDAP_DEBUG_TRACE, m_data, m_isCritical, m_noData, and m_oid.
| string LDAPCtrl::getData | ( | ) | const |
References DEBUG, LDAP_DEBUG_TRACE, and m_data.
| string LDAPCtrl::getOID | ( | ) | const |
| bool LDAPCtrl::hasData | ( | ) | const |
References m_noData.
| bool LDAPCtrl::isCritical | ( | ) | const |
std::string LDAPCtrl::m_data [private] |
Referenced by getControlStruct(), getData(), and LDAPCtrl().
bool LDAPCtrl::m_isCritical [private] |
Referenced by getControlStruct(), isCritical(), and LDAPCtrl().
bool LDAPCtrl::m_noData [private] |
Referenced by getControlStruct(), hasData(), and LDAPCtrl().
std::string LDAPCtrl::m_oid [private] |
Referenced by getControlStruct(), getOID(), and LDAPCtrl().