E0_357047
注册时间:2022-03-30 18:39:55
Ta的资源
java链接ldap
Hashtable<String, String> ht = new Hashtable<String, String>();
ht.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
ht.put(Context.PROVIDER_URL, "ldap://192.168.66.137:389");
ht.put(Context.SECURITY_AUTHENTICATION, "simple");
ht.put(Context.SECURITY_PRINCIPAL, "cn=root,o=TopSec");//cn=root,o=TopSec ou=people,o=TopSec
ht.put(Context.SECURITY_CREDENTIALS, "talent");
return ht;
开发工具:
大小:1.4KB
2022-06-15 13:05:22上传
Node-Codec:字符串编解码器
节点编解码器
字符串编解码器
将字符串编码和解码为不同的格式。
可用格式:
JSON格式
var codec = require ( 'codec' ) ;
var jsonObject = {
'a' : [ 3 , 4 ] ,
'b' : {
'e' : 5 ,
'y' : {
'a&j' : 1
}
} ,
'c' : "123" '{"a":[3,4],"b":{"e":5,"y":{"a&j":1}},"c":"123"}'
} ;
var jsonString = '{"a":[3,4],"b":{"e":5,"y":{"a&j":1}},"c":"123"}' ;
// safe encode object into json string
codec . json . encode ( jsonObject ) ; /
开发工具:
大小:21.1KB
2022-06-15 03:08:00上传