This commit is contained in:
地平线
2015-10-23 11:06:41 +08:00
parent bc801a6c36
commit 6f3acd72a1

View File

@@ -376,6 +376,10 @@ public final class Utility {
}
//-----------------------------------------------------------------------------
public static javax.net.ssl.SSLContext getDefaultSSLContext() {
return DEFAULTSSL_CONTEXT;
}
public static Socket createDefaultSSLSocket(InetSocketAddress address) throws IOException {
return createDefaultSSLSocket(address.getAddress(), address.getPort());
}