<tfoot id='NIwc8'></tfoot>

<small id='NIwc8'></small><noframes id='NIwc8'>

    • <bdo id='NIwc8'></bdo><ul id='NIwc8'></ul>
    <i id='NIwc8'><tr id='NIwc8'><dt id='NIwc8'><q id='NIwc8'><span id='NIwc8'><b id='NIwc8'><form id='NIwc8'><ins id='NIwc8'></ins><ul id='NIwc8'></ul><sub id='NIwc8'></sub></form><legend id='NIwc8'></legend><bdo id='NIwc8'><pre id='NIwc8'><center id='NIwc8'></center></pre></bdo></b><th id='NIwc8'></th></span></q></dt></tr></i><div id='NIwc8'><tfoot id='NIwc8'></tfoot><dl id='NIwc8'><fieldset id='NIwc8'></fieldset></dl></div>

    1. <legend id='NIwc8'><style id='NIwc8'><dir id='NIwc8'><q id='NIwc8'></q></dir></style></legend>

      如何使用 JNDI 将参数传递给 LDAP 自定义套接字工厂?

      How to pass arguments to an LDAP custom socket factory with JNDI?(如何使用 JNDI 将参数传递给 LDAP 自定义套接字工厂?)
    2. <tfoot id='QHKq0'></tfoot>
        <legend id='QHKq0'><style id='QHKq0'><dir id='QHKq0'><q id='QHKq0'></q></dir></style></legend>
          <bdo id='QHKq0'></bdo><ul id='QHKq0'></ul>
          • <small id='QHKq0'></small><noframes id='QHKq0'>

                  <tbody id='QHKq0'></tbody>

                <i id='QHKq0'><tr id='QHKq0'><dt id='QHKq0'><q id='QHKq0'><span id='QHKq0'><b id='QHKq0'><form id='QHKq0'><ins id='QHKq0'></ins><ul id='QHKq0'></ul><sub id='QHKq0'></sub></form><legend id='QHKq0'></legend><bdo id='QHKq0'><pre id='QHKq0'><center id='QHKq0'></center></pre></bdo></b><th id='QHKq0'></th></span></q></dt></tr></i><div id='QHKq0'><tfoot id='QHKq0'></tfoot><dl id='QHKq0'><fieldset id='QHKq0'></fieldset></dl></div>
              1. 本文介绍了如何使用 JNDI 将参数传递给 LDAP 自定义套接字工厂?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在使用 JNDI 建立 LDAP 连接.示例:

                I'm using JNDI to make LDAP connections. Example:

                Hashtable env = new Hashtable();
                env.put(Context.PROVIDER_URL, LDAPS_URL);
                env.put(Context.SECURITY_AUTHENTICATION, "EXTERNAL");
                env.put("java.naming.ldap.factory.socket", "ldaptest.CustomSocketFactory");
                ...
                

                我需要在运行时将参数传递给 CustomSocketFactory.特别是对客户端证书的引用.

                I need to pass parameters at run time to the CustomSocketFactory. Specifically a reference to a client certificate.

                我该怎么做?我可以使用线程本地存储.

                How can I do this? I could use thread local storage.

                有没有更好的办法?

                推荐答案

                实际上线程本地是我目前发现的唯一方法.我在这里发布了我的解决方案:

                Actually thread local is only way to solve this I found so far. I posted my solution here:

                jndi LDAPS 自定义 HostnameVerifier 和 TrustManager

                这篇关于如何使用 JNDI 将参数传递给 LDAP 自定义套接字工厂?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)

                <small id='v8tqV'></small><noframes id='v8tqV'>

                • <bdo id='v8tqV'></bdo><ul id='v8tqV'></ul>
                  <legend id='v8tqV'><style id='v8tqV'><dir id='v8tqV'><q id='v8tqV'></q></dir></style></legend>

                  1. <i id='v8tqV'><tr id='v8tqV'><dt id='v8tqV'><q id='v8tqV'><span id='v8tqV'><b id='v8tqV'><form id='v8tqV'><ins id='v8tqV'></ins><ul id='v8tqV'></ul><sub id='v8tqV'></sub></form><legend id='v8tqV'></legend><bdo id='v8tqV'><pre id='v8tqV'><center id='v8tqV'></center></pre></bdo></b><th id='v8tqV'></th></span></q></dt></tr></i><div id='v8tqV'><tfoot id='v8tqV'></tfoot><dl id='v8tqV'><fieldset id='v8tqV'></fieldset></dl></div>

                      <tbody id='v8tqV'></tbody>
                      1. <tfoot id='v8tqV'></tfoot>