Code example for SSLContext

Methods: init

0
				} 
			}; 
 
			sslContext.init(null, new TrustManager[] { tm }, null);
		} 
 
		@Override 
		public Socket createSocket(Socket socket, String host, int port, boolean autoClose)
				throws IOException, UnknownHostException { 
			return sslContext.getSocketFactory().createSocket(socket, host, port, autoClose);
		} 
 
		@Override 
		public Socket createSocket() throws IOException {
			return sslContext.getSocketFactory().createSocket();
		} 
	} 
 
	private static void paramToUpload(OutputStream baos, WeiboParameters params)
			throws WeiboException { 
		String key = "";