Java Doc for LdapClient.java in  » 6.0-JDK-Modules-com.sun » jndi » com » sun » jndi » ldap » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules com.sun » jndi » com.sun.jndi.ldap 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.jndi.ldap.LdapClient

LdapClient
final public class LdapClient implements PooledConnection(Code)
LDAP (RFC-1777) and LDAPv3 (RFC-2251) compliant client This class represents a connection to an LDAP client. Callers interact with this class at an LDAP operation level. That is, the caller invokes a method to do a SEARCH or MODRDN operation and gets back the result. The caller uses the constructor to create a connection to the server. It then needs to use authenticate() to perform an LDAP BIND. Note that for v3, BIND is optional so authenticate() might not actually send a BIND. authenticate() can be used later on to issue a BIND, for example, for a v3 client that wants to change the connection's credentials.

Multiple LdapCtx might share the same LdapClient. For example, contexts derived from the same initial context would share the same LdapClient until changes to a context's properties necessitates its own LdapClient. LdapClient methods that access shared data are thread-safe (i.e., caller does not have to sync).

Fields: isLdapv3 - no sync; initialized and updated within sync authenticate(); always updated when connection is "quiet" and not shared; read access from outside LdapClient not sync referenceCount - sync within LdapClient; exception is forceClose() which is used by Connection thread to close connection upon receiving an Unsolicited Notification. access from outside LdapClient must sync; conn - no sync; Connection takes care of its own sync unsolicited - sync Vector; multiple operations sync'ed
author:
   Vincent Ryan
author:
   Jagane Sundar
author:
   Rosanna Lee



Field Summary
final static  intADD
    
final static  intDELETE
    
final static  intLBER_BITSTRING
    
final static  intLBER_BOOLEAN
    
final static  intLBER_ENUMERATED
    
final static  intLBER_INTEGER
    
final static  intLBER_NULL
    
final static  intLBER_OCTETSTRING
    
final static  intLBER_SEQUENCE
    
final static  intLBER_SET
    
final static  StringLDAPS_URL
    
final static  intLDAP_ADMIN_LIMIT_EXCEEDED
    
final static  intLDAP_AFFECTS_MULTIPLE_DSAS
    
final static  intLDAP_ALIAS_DEREFERENCING_PROBLEM
    
final static  intLDAP_ALIAS_PROBLEM
    
final static  intLDAP_ATTRIBUTE_OR_VALUE_EXISTS
    
final static  intLDAP_AUTH_METHOD_NOT_SUPPORTED
    
final static  intLDAP_BUSY
    
final static  intLDAP_COMPARE_FALSE
    
final static  intLDAP_COMPARE_TRUE
    
final static  intLDAP_CONFIDENTIALITY_REQUIRED
    
final static  intLDAP_CONSTRAINT_VIOLATION
    
final static  intLDAP_CONTROLS
    
final static  StringLDAP_CONTROL_MANAGE_DSA_IT
    
final static  StringLDAP_CONTROL_PAGED_RESULTS
    
final static  StringLDAP_CONTROL_PREFERRED_LANG
    
final static  StringLDAP_CONTROL_SERVER_SORT_REQ
    
final static  StringLDAP_CONTROL_SERVER_SORT_RES
    
final static  intLDAP_ENTRY_ALREADY_EXISTS
    
final static  intLDAP_INAPPROPRIATE_AUTHENTICATION
    
final static  intLDAP_INAPPROPRIATE_MATCHING
    
final static  intLDAP_INSUFFICIENT_ACCESS_RIGHTS
    
final static  intLDAP_INVALID_ATTRIBUTE_SYNTAX
    
final static  intLDAP_INVALID_CREDENTIALS
    
final static  intLDAP_INVALID_DN_SYNTAX
    
final static  intLDAP_IS_LEAF
    
final static  intLDAP_LOOP_DETECT
    
final static  intLDAP_NAMING_VIOLATION
    
final static  intLDAP_NOT_ALLOWED_ON_NON_LEAF
    
final static  intLDAP_NOT_ALLOWED_ON_RDN
    
final static  intLDAP_NO_SUCH_ATTRIBUTE
    
final static  intLDAP_NO_SUCH_OBJECT
    
final static  intLDAP_OBJECT_CLASS_MODS_PROHIBITED
    
final static  intLDAP_OBJECT_CLASS_VIOLATION
    
final static  intLDAP_OPERATIONS_ERROR
    
final static  intLDAP_OTHER
    
final static  intLDAP_PARTIAL_RESULTS
    
final static  intLDAP_PROTOCOL_ERROR
    
final static  intLDAP_REFERRAL
    
final static  intLDAP_REF_FOLLOW
    
final static  intLDAP_REF_IGNORE
    
final static  intLDAP_REF_THROW
    
final static  intLDAP_REP_ADD
    
final static  intLDAP_REP_BIND
    
final static  intLDAP_REP_COMPARE
    
final static  intLDAP_REP_DELETE
    
final static  intLDAP_REP_EXTENSION
    
final static  intLDAP_REP_EXT_OID
    
final static  intLDAP_REP_EXT_VAL
    
final static  intLDAP_REP_MODIFY
    
final static  intLDAP_REP_MODRDN
    
final static  intLDAP_REP_REFERRAL
    
final static  intLDAP_REP_RESULT
    
final static  intLDAP_REP_SEARCH
    
final static  intLDAP_REP_SEARCH_REF
    
final static  intLDAP_REQ_ABANDON
    
final static  intLDAP_REQ_ADD
    
final static  intLDAP_REQ_BIND
    
final static  intLDAP_REQ_COMPARE
    
final static  intLDAP_REQ_DELETE
    
final static  intLDAP_REQ_EXTENSION
    
final static  intLDAP_REQ_MODIFY
    
final static  intLDAP_REQ_MODRDN
    
final static  intLDAP_REQ_SEARCH
    
final static  intLDAP_REQ_UNBIND
    
final static  intLDAP_SASL_BIND_IN_PROGRESS
    
final static  intLDAP_SIZE_LIMIT_EXCEEDED
    
final static  intLDAP_STRONG_AUTH_REQUIRED
    
final static  intLDAP_SUCCESS
    
final static  intLDAP_SUPERIOR_DN
    
final static  intLDAP_TIME_LIMIT_EXCEEDED
    
final static  intLDAP_UNAVAILABLE
    
final static  intLDAP_UNAVAILABLE_CRITICAL_EXTENSION
    
final static  intLDAP_UNDEFINED_ATTRIBUTE_TYPE
    
final static  intLDAP_UNWILLING_TO_PERFORM
    
final static  StringLDAP_URL
    
final static  intLDAP_VERSION
    
final static  intLDAP_VERSION2
    
final static  intLDAP_VERSION3
    
final static  intLDAP_VERSION3_VERSION2
    
final static  intREPLACE
    
final static  intSCOPE_BASE_OBJECT
    
final static  intSCOPE_ONE_LEVEL
    
final static  intSCOPE_SUBTREE
    
final static  booleancaseIgnore
    
 Connectionconn
    
 booleanisLdapv3
    
final static  String[]ldap_error_message
    
 intreferenceCount
    

Constructor Summary
 LdapClient(String host, int port, String socketFactory, int connectTimeout, int readTimeout, OutputStream trace, PoolCallback pcb)
    

Method Summary
 LdapResultadd(LdapEntry entry, Control[] reqCtls)
    
 voidaddUnsolicited(LdapCtx ctx)
    
synchronized  LdapResultauthenticate(boolean initial, String name, Object pw, int version, String authMechanism, Control[] ctls, Hashtable env)
    
synchronized  booleanauthenticateCalled()
    
 voidclearSearchReply(LdapResult res, Control[] ctls)
    
synchronized  voidclose(Control[] reqCtls, boolean hardClose)
    
public synchronized  voidcloseConnection()
    
 LdapResultcompare(String DN, String type, String value, Control[] reqCtls)
    
 LdapResultdelete(String DN, Control[] reqCtls)
    
static  voidencodeControls(BerEncoder ber, Control[] reqCtls)
    
 LdapResultextendedOp(String id, byte[] request, Control[] reqCtls, boolean pauseAfterReceipt)
    
protected  voidfinalize()
    
static  StringgetErrorMessage(int errorCode, String errorMessage)
    
static  LdapClientgetInstance(boolean usePool, String hostname, int port, String factory, int connectTimeout, int readTimeout, OutputStream trace, int version, String authMechanism, Control[] ctls, String protocol, String user, Object passwd, Hashtable env)
    
 LdapResultgetSearchReply(int batchSize, LdapResult res, Hashtable binaryAttrs)
    
synchronized  voidincRefCount()
    
public synchronized  LdapResultldapBind(String dn, byte[] toServer, Control[] bindCtls, String auth, boolean pauseAfterReceipt)
     Sends an LDAP Bind request. Cannot be private; called by LdapSasl
Parameters:
  dn - The possibly null DN to use in the BIND request.
 LdapResultmoddn(String DN, String newrdn, boolean deleteOldRdn, String newSuperior, Control[] reqCtls)
    
 LdapResultmodify(String dn, int operations, Attribute attrs, Control[] reqCtls)
    
static  VectorparseControls(BerDecoder replyBer)
    
static  voidparseResult(BerDecoder replyBer, LdapResult res, boolean isLdapv3)
    
 voidprocessConnectionClosure()
     Called by Connection.cleanup().
 voidprocessUnsolicited(BerDecoder ber)
    
 voidremoveUnsolicited(LdapCtx ctx)
    
 LdapResultsearch(String dn, int scope, int deref, int sizeLimit, int timeLimit, boolean attrsOnly, String attrs, String filter, int batchSize, Control[] reqCtls, Hashtable binaryAttrs, boolean waitFirstReply)
    
 booleanusingSaslStreams()
     Determines whether SASL encryption/integrity is in progress. This check is made prior to reauthentication.

Field Detail
ADD
final static int ADD(Code)



DELETE
final static int DELETE(Code)



LBER_BITSTRING
final static int LBER_BITSTRING(Code)



LBER_BOOLEAN
final static int LBER_BOOLEAN(Code)



LBER_ENUMERATED
final static int LBER_ENUMERATED(Code)



LBER_INTEGER
final static int LBER_INTEGER(Code)



LBER_NULL
final static int LBER_NULL(Code)



LBER_OCTETSTRING
final static int LBER_OCTETSTRING(Code)



LBER_SEQUENCE
final static int LBER_SEQUENCE(Code)



LBER_SET
final static int LBER_SET(Code)



LDAPS_URL
final static String LDAPS_URL(Code)



LDAP_ADMIN_LIMIT_EXCEEDED
final static int LDAP_ADMIN_LIMIT_EXCEEDED(Code)



LDAP_AFFECTS_MULTIPLE_DSAS
final static int LDAP_AFFECTS_MULTIPLE_DSAS(Code)



LDAP_ALIAS_DEREFERENCING_PROBLEM
final static int LDAP_ALIAS_DEREFERENCING_PROBLEM(Code)



LDAP_ALIAS_PROBLEM
final static int LDAP_ALIAS_PROBLEM(Code)



LDAP_ATTRIBUTE_OR_VALUE_EXISTS
final static int LDAP_ATTRIBUTE_OR_VALUE_EXISTS(Code)



LDAP_AUTH_METHOD_NOT_SUPPORTED
final static int LDAP_AUTH_METHOD_NOT_SUPPORTED(Code)



LDAP_BUSY
final static int LDAP_BUSY(Code)



LDAP_COMPARE_FALSE
final static int LDAP_COMPARE_FALSE(Code)



LDAP_COMPARE_TRUE
final static int LDAP_COMPARE_TRUE(Code)



LDAP_CONFIDENTIALITY_REQUIRED
final static int LDAP_CONFIDENTIALITY_REQUIRED(Code)



LDAP_CONSTRAINT_VIOLATION
final static int LDAP_CONSTRAINT_VIOLATION(Code)



LDAP_CONTROLS
final static int LDAP_CONTROLS(Code)



LDAP_CONTROL_MANAGE_DSA_IT
final static String LDAP_CONTROL_MANAGE_DSA_IT(Code)



LDAP_CONTROL_PAGED_RESULTS
final static String LDAP_CONTROL_PAGED_RESULTS(Code)



LDAP_CONTROL_PREFERRED_LANG
final static String LDAP_CONTROL_PREFERRED_LANG(Code)



LDAP_CONTROL_SERVER_SORT_REQ
final static String LDAP_CONTROL_SERVER_SORT_REQ(Code)



LDAP_CONTROL_SERVER_SORT_RES
final static String LDAP_CONTROL_SERVER_SORT_RES(Code)



LDAP_ENTRY_ALREADY_EXISTS
final static int LDAP_ENTRY_ALREADY_EXISTS(Code)



LDAP_INAPPROPRIATE_AUTHENTICATION
final static int LDAP_INAPPROPRIATE_AUTHENTICATION(Code)



LDAP_INAPPROPRIATE_MATCHING
final static int LDAP_INAPPROPRIATE_MATCHING(Code)



LDAP_INSUFFICIENT_ACCESS_RIGHTS
final static int LDAP_INSUFFICIENT_ACCESS_RIGHTS(Code)



LDAP_INVALID_ATTRIBUTE_SYNTAX
final static int LDAP_INVALID_ATTRIBUTE_SYNTAX(Code)



LDAP_INVALID_CREDENTIALS
final static int LDAP_INVALID_CREDENTIALS(Code)



LDAP_INVALID_DN_SYNTAX
final static int LDAP_INVALID_DN_SYNTAX(Code)



LDAP_IS_LEAF
final static int LDAP_IS_LEAF(Code)



LDAP_LOOP_DETECT
final static int LDAP_LOOP_DETECT(Code)



LDAP_NAMING_VIOLATION
final static int LDAP_NAMING_VIOLATION(Code)



LDAP_NOT_ALLOWED_ON_NON_LEAF
final static int LDAP_NOT_ALLOWED_ON_NON_LEAF(Code)



LDAP_NOT_ALLOWED_ON_RDN
final static int LDAP_NOT_ALLOWED_ON_RDN(Code)



LDAP_NO_SUCH_ATTRIBUTE
final static int LDAP_NO_SUCH_ATTRIBUTE(Code)



LDAP_NO_SUCH_OBJECT
final static int LDAP_NO_SUCH_OBJECT(Code)



LDAP_OBJECT_CLASS_MODS_PROHIBITED
final static int LDAP_OBJECT_CLASS_MODS_PROHIBITED(Code)



LDAP_OBJECT_CLASS_VIOLATION
final static int LDAP_OBJECT_CLASS_VIOLATION(Code)



LDAP_OPERATIONS_ERROR
final static int LDAP_OPERATIONS_ERROR(Code)



LDAP_OTHER
final static int LDAP_OTHER(Code)



LDAP_PARTIAL_RESULTS
final static int LDAP_PARTIAL_RESULTS(Code)



LDAP_PROTOCOL_ERROR
final static int LDAP_PROTOCOL_ERROR(Code)



LDAP_REFERRAL
final static int LDAP_REFERRAL(Code)



LDAP_REF_FOLLOW
final static int LDAP_REF_FOLLOW(Code)



LDAP_REF_IGNORE
final static int LDAP_REF_IGNORE(Code)



LDAP_REF_THROW
final static int LDAP_REF_THROW(Code)



LDAP_REP_ADD
final static int LDAP_REP_ADD(Code)



LDAP_REP_BIND
final static int LDAP_REP_BIND(Code)



LDAP_REP_COMPARE
final static int LDAP_REP_COMPARE(Code)



LDAP_REP_DELETE
final static int LDAP_REP_DELETE(Code)



LDAP_REP_EXTENSION
final static int LDAP_REP_EXTENSION(Code)



LDAP_REP_EXT_OID
final static int LDAP_REP_EXT_OID(Code)



LDAP_REP_EXT_VAL
final static int LDAP_REP_EXT_VAL(Code)



LDAP_REP_MODIFY
final static int LDAP_REP_MODIFY(Code)



LDAP_REP_MODRDN
final static int LDAP_REP_MODRDN(Code)



LDAP_REP_REFERRAL
final static int LDAP_REP_REFERRAL(Code)



LDAP_REP_RESULT
final static int LDAP_REP_RESULT(Code)



LDAP_REP_SEARCH
final static int LDAP_REP_SEARCH(Code)



LDAP_REP_SEARCH_REF
final static int LDAP_REP_SEARCH_REF(Code)



LDAP_REQ_ABANDON
final static int LDAP_REQ_ABANDON(Code)



LDAP_REQ_ADD
final static int LDAP_REQ_ADD(Code)



LDAP_REQ_BIND
final static int LDAP_REQ_BIND(Code)



LDAP_REQ_COMPARE
final static int LDAP_REQ_COMPARE(Code)



LDAP_REQ_DELETE
final static int LDAP_REQ_DELETE(Code)



LDAP_REQ_EXTENSION
final static int LDAP_REQ_EXTENSION(Code)



LDAP_REQ_MODIFY
final static int LDAP_REQ_MODIFY(Code)



LDAP_REQ_MODRDN
final static int LDAP_REQ_MODRDN(Code)



LDAP_REQ_SEARCH
final static int LDAP_REQ_SEARCH(Code)



LDAP_REQ_UNBIND
final static int LDAP_REQ_UNBIND(Code)



LDAP_SASL_BIND_IN_PROGRESS
final static int LDAP_SASL_BIND_IN_PROGRESS(Code)



LDAP_SIZE_LIMIT_EXCEEDED
final static int LDAP_SIZE_LIMIT_EXCEEDED(Code)



LDAP_STRONG_AUTH_REQUIRED
final static int LDAP_STRONG_AUTH_REQUIRED(Code)



LDAP_SUCCESS
final static int LDAP_SUCCESS(Code)



LDAP_SUPERIOR_DN
final static int LDAP_SUPERIOR_DN(Code)



LDAP_TIME_LIMIT_EXCEEDED
final static int LDAP_TIME_LIMIT_EXCEEDED(Code)



LDAP_UNAVAILABLE
final static int LDAP_UNAVAILABLE(Code)



LDAP_UNAVAILABLE_CRITICAL_EXTENSION
final static int LDAP_UNAVAILABLE_CRITICAL_EXTENSION(Code)



LDAP_UNDEFINED_ATTRIBUTE_TYPE
final static int LDAP_UNDEFINED_ATTRIBUTE_TYPE(Code)



LDAP_UNWILLING_TO_PERFORM
final static int LDAP_UNWILLING_TO_PERFORM(Code)



LDAP_URL
final static String LDAP_URL(Code)



LDAP_VERSION
final static int LDAP_VERSION(Code)



LDAP_VERSION2
final static int LDAP_VERSION2(Code)



LDAP_VERSION3
final static int LDAP_VERSION3(Code)



LDAP_VERSION3_VERSION2
final static int LDAP_VERSION3_VERSION2(Code)



REPLACE
final static int REPLACE(Code)



SCOPE_BASE_OBJECT
final static int SCOPE_BASE_OBJECT(Code)



SCOPE_ONE_LEVEL
final static int SCOPE_ONE_LEVEL(Code)



SCOPE_SUBTREE
final static int SCOPE_SUBTREE(Code)



caseIgnore
final static boolean caseIgnore(Code)



conn
Connection conn(Code)



isLdapv3
boolean isLdapv3(Code)



ldap_error_message
final static String[] ldap_error_message(Code)



referenceCount
int referenceCount(Code)




Constructor Detail
LdapClient
LdapClient(String host, int port, String socketFactory, int connectTimeout, int readTimeout, OutputStream trace, PoolCallback pcb) throws NamingException(Code)




Method Detail
add
LdapResult add(LdapEntry entry, Control[] reqCtls) throws IOException, NamingException(Code)



addUnsolicited
void addUnsolicited(LdapCtx ctx)(Code)



authenticate
synchronized LdapResult authenticate(boolean initial, String name, Object pw, int version, String authMechanism, Control[] ctls, Hashtable env) throws NamingException(Code)



authenticateCalled
synchronized boolean authenticateCalled()(Code)



clearSearchReply
void clearSearchReply(LdapResult res, Control[] ctls)(Code)



close
synchronized void close(Control[] reqCtls, boolean hardClose)(Code)



closeConnection
public synchronized void closeConnection()(Code)



compare
LdapResult compare(String DN, String type, String value, Control[] reqCtls) throws IOException, NamingException(Code)



delete
LdapResult delete(String DN, Control[] reqCtls) throws IOException, NamingException(Code)



encodeControls
static void encodeControls(BerEncoder ber, Control[] reqCtls) throws IOException(Code)



extendedOp
LdapResult extendedOp(String id, byte[] request, Control[] reqCtls, boolean pauseAfterReceipt) throws IOException, NamingException(Code)



finalize
protected void finalize()(Code)



getErrorMessage
static String getErrorMessage(int errorCode, String errorMessage)(Code)



getInstance
static LdapClient getInstance(boolean usePool, String hostname, int port, String factory, int connectTimeout, int readTimeout, OutputStream trace, int version, String authMechanism, Control[] ctls, String protocol, String user, Object passwd, Hashtable env) throws NamingException(Code)



getSearchReply
LdapResult getSearchReply(int batchSize, LdapResult res, Hashtable binaryAttrs) throws IOException, NamingException(Code)



incRefCount
synchronized void incRefCount()(Code)



ldapBind
public synchronized LdapResult ldapBind(String dn, byte[] toServer, Control[] bindCtls, String auth, boolean pauseAfterReceipt) throws java.io.IOException, NamingException(Code)
Sends an LDAP Bind request. Cannot be private; called by LdapSasl
Parameters:
  dn - The possibly null DN to use in the BIND request. null if anonymous.
Parameters:
  toServer - The possibly null array of bytes to send to the server.
Parameters:
  auth - The authentication mechanism



moddn
LdapResult moddn(String DN, String newrdn, boolean deleteOldRdn, String newSuperior, Control[] reqCtls) throws IOException, NamingException(Code)



modify
LdapResult modify(String dn, int operations, Attribute attrs, Control[] reqCtls) throws IOException, NamingException(Code)



parseControls
static Vector parseControls(BerDecoder replyBer) throws IOException(Code)



parseResult
static void parseResult(BerDecoder replyBer, LdapResult res, boolean isLdapv3) throws IOException(Code)



processConnectionClosure
void processConnectionClosure()(Code)
Called by Connection.cleanup(). LdapClient should notify any unsolicited listeners and removing itself from any pool. This is almost like forceClose(), except it doesn't call Connection.cleanup() (because this is called from cleanup()).



processUnsolicited
void processUnsolicited(BerDecoder ber)(Code)



removeUnsolicited
void removeUnsolicited(LdapCtx ctx)(Code)



search
LdapResult search(String dn, int scope, int deref, int sizeLimit, int timeLimit, boolean attrsOnly, String attrs, String filter, int batchSize, Control[] reqCtls, Hashtable binaryAttrs, boolean waitFirstReply) throws IOException, NamingException(Code)



usingSaslStreams
boolean usingSaslStreams()(Code)
Determines whether SASL encryption/integrity is in progress. This check is made prior to reauthentication. You cannot reauthenticate over an encrypted/integrity-protected SASL channel. You must close the channel and open a new one.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.