railo.runtime.net.ldap
Class LDAPClient

java.lang.Object
  extended by railo.runtime.net.ldap.LDAPClient

public final class LDAPClient
extends Object

Ldap Client


Field Summary
static short SECURE_CFSSL_BASIC
          Field SECURE_CFSSL_BASIC
static short SECURE_CFSSL_CLIENT_AUTH
          Field SECURE_CFSSL_CLIENT_AUTH
static short SECURE_NONE
          Field SECURE_NONE
static int SORT_DIRECTION_ASC
          Field SORT_DIRECTION_ASC
static int SORT_DIRECTION_DESC
          Field SORT_DIRECTION_DESC
static int SORT_TYPE_CASE
          Field SORT_TYPE_CASE
static int SORT_TYPE_NOCASE
          Field SORT_TYPE_NOCASE
 
Constructor Summary
LDAPClient(String server, int port, String[] binaryColumns)
          constructor of the class
 
Method Summary
 void add(String dn, String attributes, String delimiter, String seperator)
          adds LDAP entries to LDAP server
 void delete(String dn)
          deletes LDAP entries on an LDAP server
 void modify(String dn, int modifytype, String strAttributes, String delimiter, String separator)
           
 void modifydn(String dn, String attributes)
          modifies distinguished name attribute for LDAP entries on LDAP server
 Query query(String strAttributes, int scope, int startrow, int maxrows, int timeout, String[] sort, int sortType, int sortDirection, String start, String separator, String filter)
           
 void setCredential(String username, String password)
          sets username password for the connection
 void setReferral(int referral)
          sets thr referral
 void setSecureLevel(short secureLevel)
          sets the secure Level
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SECURE_NONE

public static final short SECURE_NONE
Field SECURE_NONE

See Also:
Constant Field Values

SECURE_CFSSL_BASIC

public static final short SECURE_CFSSL_BASIC
Field SECURE_CFSSL_BASIC

See Also:
Constant Field Values

SECURE_CFSSL_CLIENT_AUTH

public static final short SECURE_CFSSL_CLIENT_AUTH
Field SECURE_CFSSL_CLIENT_AUTH

See Also:
Constant Field Values

SORT_TYPE_CASE

public static final int SORT_TYPE_CASE
Field SORT_TYPE_CASE

See Also:
Constant Field Values

SORT_TYPE_NOCASE

public static final int SORT_TYPE_NOCASE
Field SORT_TYPE_NOCASE

See Also:
Constant Field Values

SORT_DIRECTION_ASC

public static final int SORT_DIRECTION_ASC
Field SORT_DIRECTION_ASC

See Also:
Constant Field Values

SORT_DIRECTION_DESC

public static final int SORT_DIRECTION_DESC
Field SORT_DIRECTION_DESC

See Also:
Constant Field Values
Constructor Detail

LDAPClient

public LDAPClient(String server,
                  int port,
                  String[] binaryColumns)
constructor of the class

Parameters:
server -
port -
binaryColumns -
Method Detail

setCredential

public void setCredential(String username,
                          String password)
sets username password for the connection

Parameters:
username -
password -

setSecureLevel

public void setSecureLevel(short secureLevel)
                    throws ClassException
sets the secure Level

Parameters:
secureLevel - [SECURE_CFSSL_BASIC, SECURE_CFSSL_CLIENT_AUTH, SECURE_NONE]
Throws:
ClassNotFoundException
ClassException

setReferral

public void setReferral(int referral)
sets thr referral

Parameters:
referral -

add

public void add(String dn,
                String attributes,
                String delimiter,
                String seperator)
         throws NamingException,
                PageException
adds LDAP entries to LDAP server

Parameters:
dn -
attributes -
delimiter -
Throws:
NamingException
PageException

delete

public void delete(String dn)
            throws NamingException
deletes LDAP entries on an LDAP server

Parameters:
dn -
Throws:
NamingException

modifydn

public void modifydn(String dn,
                     String attributes)
              throws NamingException
modifies distinguished name attribute for LDAP entries on LDAP server

Parameters:
dn -
attributes -
Throws:
NamingException

modify

public void modify(String dn,
                   int modifytype,
                   String strAttributes,
                   String delimiter,
                   String separator)
            throws NamingException,
                   PageException
Throws:
NamingException
PageException

query

public Query query(String strAttributes,
                   int scope,
                   int startrow,
                   int maxrows,
                   int timeout,
                   String[] sort,
                   int sortType,
                   int sortDirection,
                   String start,
                   String separator,
                   String filter)
            throws NamingException,
                   PageException,
                   IOException
Parameters:
dn -
strAttributes -
scope -
startrow -
maxrows -
timeout -
sort -
sortType -
sortDirection -
start -
separator -
filter -
Returns:
Throws:
NamingException
PageException
IOException


Copyright © 2012 Railo