Skip to content

Commit c72a3bf

Browse files
authored
fixes #2207 replace light-4j client to http-client for ldap-util (#2208)
1 parent ddda10c commit c72a3bf

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

basic-config/pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
<groupId>com.networknt</groupId>
3535
<artifactId>config</artifactId>
3636
</dependency>
37+
<dependency>
38+
<groupId>com.networknt</groupId>
39+
<artifactId>ldap-util</artifactId>
40+
</dependency>
3741
<dependency>
3842
<groupId>org.slf4j</groupId>
3943
<artifactId>slf4j-api</artifactId>

ldap-util/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</dependency>
3737
<dependency>
3838
<groupId>com.networknt</groupId>
39-
<artifactId>client</artifactId>
39+
<artifactId>http-client</artifactId>
4040
</dependency>
4141
<dependency>
4242
<groupId>com.networknt</groupId>

ldap-util/src/main/java/com/networknt/ldap/LdapSSLSocketFactory.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.networknt.ldap;
22

3-
import com.networknt.client.Http2Client;
3+
import com.networknt.http.client.HttpClientRequest;
44
import org.slf4j.Logger;
55
import org.slf4j.LoggerFactory;
66

@@ -18,7 +18,7 @@ public class LdapSSLSocketFactory extends SSLSocketFactory {
1818

1919
public LdapSSLSocketFactory() {
2020
try {
21-
SSLContext ctx = Http2Client.createSSLContext();
21+
SSLContext ctx = HttpClientRequest.createSSLContext();
2222
socketFactory = ctx.getSocketFactory();
2323
} catch ( Exception ex ){ throw new IllegalArgumentException(ex); }
2424
}

0 commit comments

Comments
 (0)