Skip to content

Commit 3830e0d

Browse files
committed
Rename SSLEnabled to SSLVerifyEnabled
1 parent 83c2b58 commit 3830e0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/io/cryptolens/internal/HelperMethods.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class HelperMethods {
2626
* before calling any of the API methods. Once an API method is called, it will no longer be possible
2727
* to re-enable SSL verification by setting this variable to false.
2828
*/
29-
public static boolean SSLEnabled = true;
29+
public static boolean SSLVerifyEnabled = true;
3030

3131
public static <T extends BasicResult> T SendRequestToWebAPI(String method, RequestModel model, Map<String,String> extraParams, Class<T> clazz) {
3232
return SendRequestToWebAPI(method, model, extraParams, clazz, null);
@@ -66,7 +66,7 @@ public static <T extends BasicResult> T SendRequestToWebAPI(String method, Reque
6666
RequestHandler requestHandler = new HttpsURLConnectionRequestHandler();
6767

6868
try {
69-
if(!HelperMethods.SSLEnabled) {
69+
if(!HelperMethods.SSLVerifyEnabled) {
7070
HttpsURLConnection.setDefaultHostnameVerifier(new HostnameVerifier() {
7171
public boolean verify(String hostname, SSLSession session) {
7272
return true;

0 commit comments

Comments
 (0)