Пример #1
0
 public static SSLSocketFactory getSocketFactory(X509CertificateChain chain) {
   KeyStore ts = null;
   KeyStore ks = null;
   if (chain != null) ks = getKeyStore(chain.getChain(), chain.getPrivateKey());
   return getSocketFactory(ks, ts);
 }