public InputStream getInputStream() throws IOException { InputStream is = socket.getInputStream(); cis = new CipherInputStream (is, inCipher); return cis; }
public OutputStream getOutputStream() throws IOException { OutputStream os = socket.getOutputStream(); cos = new CipherOutputStream (os, outCipher); return cos; } }