FINERACT-1219: Add insecure() support to FineractClient SDK API (fix JDK8 syntax)
This commit is contained in:
committed by
Aleksandar Vidakovic
parent
c98cef85f6
commit
800b7e07ad
@@ -428,7 +428,7 @@ public final class FineractClient {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var sslContext = SSLContext.getInstance("SSL");
|
SSLContext sslContext = SSLContext.getInstance("SSL");
|
||||||
sslContext.init(null, new TrustManager[] { insecureX509TrustManager }, new SecureRandom());
|
sslContext.init(null, new TrustManager[] { insecureX509TrustManager }, new SecureRandom());
|
||||||
SSLSocketFactory insecureSslSocketFactory = sslContext.getSocketFactory();
|
SSLSocketFactory insecureSslSocketFactory = sslContext.getSocketFactory();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user