ldapsdk
0.0.1
|
This class is used to store Controls. More...
#include <LDAPControl.h>
Public Member Functions | |
LDAPCtrl (const char *oid, bool critical=false, const char *data=0, int length=0) | |
Constructor. More... | |
LDAPCtrl (const std::string &oid, bool critical, const std::string &data) | |
Constructor. More... | |
LDAPCtrl (const LDAPControl *ctrl) | |
Creates a copy of the Control that "ctrl is pointing to. More... | |
~LDAPCtrl () | |
Destructor. More... | |
std::string | getOID () const |
bool | hasData () const |
std::string | getData () const |
bool | isCritical () const |
LDAPControl * | getControlStruct () const |
For internal use only. More... | |
Static Public Member Functions | |
static void | freeLDAPControlStruct (LDAPControl *ctrl) |
This class is used to store Controls.
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, and LDAP_DEBUG_PARAMETER.
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, and LDAP_DEBUG_CONSTRUCT.
LDAPCtrl::~LDAPCtrl | ( | ) |
Destructor.
References DEBUG, and LDAP_DEBUG_DESTROY.
|
static |
References DEBUG, and LDAP_DEBUG_TRACE.
Referenced by LDAPControlSet::freeLDAPControlArray().
LDAPControl * LDAPCtrl::getControlStruct | ( | ) | const |
For internal use only.
Translates the control to a LDAPControl-structure as needed by the C-API
References DEBUG, and LDAP_DEBUG_TRACE.
string LDAPCtrl::getData | ( | ) | const |
References DEBUG, and LDAP_DEBUG_TRACE.
string LDAPCtrl::getOID | ( | ) | const |
References DEBUG, and LDAP_DEBUG_TRACE.
bool LDAPCtrl::hasData | ( | ) | const |
bool LDAPCtrl::isCritical | ( | ) | const |
References DEBUG, and LDAP_DEBUG_TRACE.