Class LDAP::Control
In: conn.c
lib/ldap/control.rb
Parent: Object

Create, manipulate and inspect LDAP controls.

Methods

critical   critical=   critical?   decode   encode   initialize_copy   inspect   iscritical   iscritical=   new   new   oid   oid=   value   value=  

Public Class methods

Take vals, produce an Array of values in ASN.1 format and then convert the Array to DER.

Create a new LDAP::Control. oid is the OID of the control, value is the value to be assigned to the control, and criticality is the criticality of the control, which should be true or false.

LDAP::Control.new(oid, value, criticality) => LDAP::Control

Create a new LDAP::Control. oid is the OID of the control, value is the value to be assigned to the control, and criticality is the criticality of the control, which should be true or false.

Public Instance methods

Set the criticality of the control. val should be true or false.

Document-method: critical=

Set the criticality of the control. val should be true or false.

Take an Array of ASN.1 data and return an Array of decoded values.

This is called by initialize_copy and is using for duping/cloning.

Produce a concise representation of the control.

Document-method: critical=

Set the criticality of the control. val should be true or false.

Document-method: critical=

Set the criticality of the control. val should be true or false.

Return the OID of the control.

Set the OID of the control.

Return the value of the control.

Set the value of the control.

[Validate]