Code example for SSLContext

Methods: getSocketFactory

0
		} catch (IOException e) {
		} 
	} 
 
	public SSLSocketFactory getSslSocketFactory() {
		return sslContext.getSocketFactory();
	} 
 
	public byte[] readFile(File f) {
		int length = (int) f.length();
		byte[] bytes = null;
		try { 
			bytes = readStream(length, new FileInputStream(f));
		} catch (FileNotFoundException e) {
			Log.w("Network.readFile",
					"called to read nonexistent file " + f.getPath());
			return null; 
		} catch (IOException e) {
			Log.w("Network.readFile", "failed during read", e);
			return null; 
		}