C# Class Novell.Directory.Ldap.Rfc2251.RfcLdapMessage

Represents an Ldap Message.
 LdapMessage ::= SEQUENCE { messageID       MessageID, protocolOp      CHOICE { bindRequest     BindRequest, bindResponse    BindResponse, unbindRequest   UnbindRequest, searchRequest   SearchRequest, searchResEntry  SearchResultEntry, searchResDone   SearchResultDone, searchResRef    SearchResultReference, modifyRequest   ModifyRequest, modifyResponse  ModifyResponse, addRequest      AddRequest, addResponse     AddResponse, delRequest      DelRequest, delResponse     DelResponse, modDNRequest    ModifyDNRequest, modDNResponse   ModifyDNResponse, compareRequest  CompareRequest, compareResponse CompareResponse, abandonRequest  AbandonRequest, extendedReq     ExtendedRequest, extendedResp    ExtendedResponse }, controls       [0] Controls OPTIONAL } 
Note: The creation of a MessageID should be hidden within the creation of an RfcLdapMessage. The MessageID needs to be in sequence, and has an upper and lower limit. There is never a case when a user should be able to specify the MessageID for an RfcLdapMessage. The MessageID() constructor should be package protected. (So the MessageID value isn't arbitrarily run up.)
Inheritance: Novell.Directory.Ldap.Asn1.Asn1Sequence
Mostrar archivo Open project: EventStore/csharp-ldap Class Usage Examples

Public Methods

Method Description
RfcLdapMessage ( Asn1Sequence op ) : System

Create an RfcLdapMessage using the specified Ldap Response.

RfcLdapMessage ( Asn1Sequence op, RfcControls controls ) : System

Create an RfcLdapMessage response from input parameters.

RfcLdapMessage ( RfcRequest op ) : System

Create an RfcLdapMessage using the specified Ldap Request.

RfcLdapMessage ( RfcRequest op, RfcControls controls ) : System

Create an RfcLdapMessage request from input parameters.

dupMessage ( System dn, System filter, bool reference ) : Object

Duplicate this message, replacing base dn, filter, and scope if supplied

getRequest ( ) : RfcRequest

Returns the request associated with this RfcLdapMessage. Throws a class cast exception if the RfcLdapMessage is not a request.

isRequest ( ) : bool

Private Methods

Method Description
RfcLdapMessage ( Asn1Decoder dec, System in_Renamed, int len ) : System
RfcLdapMessage ( Asn1Object origContent, RfcRequest origRequest, System dn, System filter, bool reference ) : System

Create an RfcLdapMessage by copying the content array

Method Details

RfcLdapMessage() public method

Create an RfcLdapMessage using the specified Ldap Response.
public RfcLdapMessage ( Asn1Sequence op ) : System
op Novell.Directory.Ldap.Asn1.Asn1Sequence
return System

RfcLdapMessage() public method

Create an RfcLdapMessage response from input parameters.
public RfcLdapMessage ( Asn1Sequence op, RfcControls controls ) : System
op Novell.Directory.Ldap.Asn1.Asn1Sequence
controls RfcControls
return System

RfcLdapMessage() public method

Create an RfcLdapMessage using the specified Ldap Request.
public RfcLdapMessage ( RfcRequest op ) : System
op RfcRequest
return System

RfcLdapMessage() public method

Create an RfcLdapMessage request from input parameters.
public RfcLdapMessage ( RfcRequest op, RfcControls controls ) : System
op RfcRequest
controls RfcControls
return System

dupMessage() public method

Duplicate this message, replacing base dn, filter, and scope if supplied
public dupMessage ( System dn, System filter, bool reference ) : Object
dn System the base dn /// ///
filter System the filter /// ///
reference bool true if a search reference /// ///
return System.Object

getRequest() public method

Returns the request associated with this RfcLdapMessage. Throws a class cast exception if the RfcLdapMessage is not a request.
public getRequest ( ) : RfcRequest
return RfcRequest

isRequest() public method

public isRequest ( ) : bool
return bool