public static boolean isConscryptPreferred() { // mainly to allow tests to run cleanly if ("conscrypt".equals(Util.getSystemProperty("okhttp.platform", null))) { return true; } // check if Provider manually installed String preferredProvider = Security.getProviders()[0].getName(); return "Conscrypt".equals(preferredProvider); }
public static boolean isConscryptPreferred() { // mainly to allow tests to run cleanly if ("conscrypt".equals(Util.getSystemProperty("okhttp.platform", null))) { return true; } // check if Provider manually installed String preferredProvider = Security.getProviders()[0].getName(); return "Conscrypt".equals(preferredProvider); }
private String defaultUserAgent() { String agent = Util.getSystemProperty("http.agent", null); return agent != null ? toHumanReadableAscii(agent) : Version.userAgent(); }
private String defaultUserAgent() { String agent = Util.getSystemProperty("http.agent", null); return agent != null ? toHumanReadableAscii(agent) : Version.userAgent(); }