#include <LDAPControl.h>
Public Member Functions | |
| LDAPCtrl (const LDAPCtrl &c) | |
| Copy-constructor. | |
| LDAPCtrl (const char *oid, bool critical, const char *data=0, int length=0) | |
| Constructor. | |
| LDAPCtrl (const std::string &oid, bool critical=false, const std::string &data=std::string()) | |
| Constructor. | |
| LDAPCtrl (const LDAPControl *ctrl) | |
| Creates a copy of the Control that "ctrl is pointing to. | |
| ~LDAPCtrl () | |
| Destructor. | |
| std::string | getOID () 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 |
Controls are a mechanism to extend and modify LDAP-Operations.
| LDAPCtrl::LDAPCtrl | ( | const LDAPCtrl & | c | ) |
Copy-constructor.
| LDAPCtrl::LDAPCtrl | ( | const char * | oid, | |
| bool | critical, | |||
| 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 |
| LDAPCtrl::LDAPCtrl | ( | const std::string & | oid, | |
| bool | critical = false, |
|||
| const std::string & | data = std::string() | |||
| ) |
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.
| LDAPCtrl::~LDAPCtrl | ( | ) |
Destructor.
| string LDAPCtrl::getOID | ( | ) | const |
| string LDAPCtrl::getData | ( | ) | const |
| bool LDAPCtrl::isCritical | ( | ) | const |
| LDAPControl * LDAPCtrl::getControlStruct | ( | ) | const |
For internal use only.
Translates the control to a LDAPControl-structure as needed by the C-API
| void LDAPCtrl::freeLDAPControlStruct | ( | LDAPControl * | ctrl | ) | [static] |
std::string LDAPCtrl::m_oid [private] |
std::string LDAPCtrl::m_data [private] |
bool LDAPCtrl::m_isCritical [private] |
1.5.3