sslContext.init(null, xtmArray, new java.security.SecureRandom());
} catch (GeneralSecurityException gse) {
}
if (sslContext != null) {
HttpsURLConnection.setDefaultSSLSocketFactory(sslContext
.getSocketFactory());
}
HttpsURLConnection.setDefaultHostnameVerifier(hnv);
}
private static HttpsUtils instance = null;
public static HttpsUtils getInstance(){
if (instance == null) {
instance = new HttpsUtils();
}
return instance;
}
复制代码
按理来说,基本所以的智能手机都是支持的!我不太确定哈,如果不放心的话 就使用Testin 简单测测吧!