Skip to content

Commit

Permalink
skipverification ignored fix (#2273)
Browse files Browse the repository at this point in the history
  • Loading branch information
cache-sk committed May 4, 2023
1 parent 87a875c commit 5ebeeb0
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,19 @@
import java.security.SecureRandom;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import javax.net.SocketFactory;

public class SkipSslLdapSocketFactory extends BaseLdapSocketFactory {

private static SocketFactory instance;
public static SocketFactory getDefault() {
if (instance == null) {
instance = new SkipSslLdapSocketFactory();
}

return instance;
}

public SkipSslLdapSocketFactory() {
try {
TrustManager trustManager = new X509TrustManager() {
Expand Down

0 comments on commit 5ebeeb0

Please sign in to comment.