KeyAgreement function ( boolean arg0 ) { return diffieHellman ( arg0 , 512 ) ; }
performs a diffie-hellman key exchange and produce a common secret between two ends of the connection . dh is also useful as a coin-toss algorithm . two parties get the same random number without trusting each other . concode_field_sep InputStream in concode_elem_sep DataOutputStream dout concode_elem_sep DataInputStream din concode_elem_sep OutputStream out concode_field_sep void writeByteArray concode_elem_sep PublicKey verifyIdentity concode_elem_sep void writeObject concode_elem_sep X509EncodedKeySpec readKey concode_elem_sep Connection encryptConnection concode_elem_sep void proveIdentity concode_elem_sep T readObject concode_elem_sep void writeKey concode_elem_sep byte[] fold concode_elem_sep String readUTF concode_elem_sep byte[] readByteArray concode_elem_sep void writeUTF concode_elem_sep boolean readBoolean concode_elem_sep void close concode_elem_sep void writeBoolean concode_elem_sep String detectKeyAlgorithm concode_elem_sep String detectKeyAlgorithm