auth/src/main/java/org/jboss/pnc/auth/keycloakutil/util/HttpUtil.java
public static void setSslRequired(boolean sslRequired) {
        if (HttpUtil.sslRequired != sslRequired) {
            HttpUtil.sslRequired = sslRequired;
            HttpUtil.httpClient = null;
        }
    }
public static void setSslRequired(boolean sslRequired) {
        if (HttpUtil.sslRequired != sslRequired) {
            HttpUtil.sslRequired = sslRequired;
            HttpUtil.httpClient = null;
        }
    }
public static void setSslRequired ( boolean sslRequired ) { if ( HttpUtil . sslRequired != sslRequired ) { HttpUtil . sslRequired = sslRequired ; HttpUtil . httpClient = null ; } }
Sets flag telling if SSL hostname validation should be done which also clears the cached httpClient. This method
is not thread-safe and could cause race conditions if the class is used with different settings at the same
time, but that is not expected.

@param sslRequired the desired value
Sets flag telling if SSL hostname validation should be done which also clears the cached httpClient . This method is not thread - safe and could cause race conditions if the class is used with different settings at the same time but that is not expected .