Code example for SSLContext

Methods: getSocketFactory

0
			return ssl;
		} 
 
		@Override 
		public Socket createSocket() throws IOException {
			return _sslc.getSocketFactory().createSocket();
		} 
 
		@Override 
		public Socket createSocket(Socket sock, String host, int port, boolean autoClose)
			throws IOException, UnknownHostException { 
 
			return _sslc.getSocketFactory().createSocket(sock, host, port, autoClose);
		} 
 
		@Override 
		public boolean isSecure(Socket socket) throws IllegalArgumentException {
			return true; 
		} 
	}