简体   繁体   English

JNDI中的LdapContext与dircontext

[英]LdapContext vs dircontext in JNDI

Please explain the difference between using ldapcontext and dircontext in JNDI. 请解释在JNDI中使用ldapcontextdircontext的区别。

I found that there are JNDI samples using both ldapcontext and dircontext . 我发现有同时使用ldapcontextdircontext JNDI示例。 Which should I use? 我应该使用哪个?

From JavaDocs about ldapcontext 从JavaDocs关于ldapcontext

This interface represents a context in which you can perform operations with LDAPv3-style controls and perform LDAPv3-style extended operations. 该接口表示一个上下文,您可以在其中使用LDAPv3样式的控件执行操作并执行LDAPv3样式的扩展操作。 For applications that do not require such controls or extended operations, the more generic javax.naming.directory.DirContext should be used instead. 对于不需要此类控件或扩展操作的应用程序,应改用更通用的javax.naming.directory.DirContext。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM