All Packages Class Hierarchy This Package Previous Next Index
Class is.logi.crypto.io.CipherStreamClient
java.lang.Object
|
+----is.logi.crypto.Crypto
|
+----is.logi.crypto.io.CipherStream
|
+----is.logi.crypto.io.CipherStreamClient
- public class CipherStreamClient
- extends CipherStream
This class can be used to apply an interactive key exchange protocol to a
pair of streams and then encrypt all data going through them with the session
key exchanged. This class expects to talk to an equivalent server class.
- Author:
- Logi Ragnarsson
(logir@hi.is)
- See Also:
- CipherStreamServer
-
CipherStreamClient(InputStream, OutputStream, InterKeyExClient, EncryptMode, DecryptMode)
- Create a new CipherStreamClient object and ecxhange keys.
-
execute(InterProtocolClient)
- Executes an interactive protocol.
CipherStreamClient
public CipherStreamClient(InputStream in,
OutputStream out,
InterKeyExClient kex,
EncryptMode encrypt,
DecryptMode decrypt) throws ProtocolException, IOException
- Create a new CipherStreamClient object and ecxhange keys.
Create a new object which uses kex
to exchange keys with
a remote server and then encrypt
to encrypt the data to
out
and decrypt
to decrypt data from
in
and out
.
- Throws: ProtocolException
- if there is a problem exchanging keys.
- Throws: IOException
- if there is a problem with the underlying streams.
execute
public void execute(InterProtocolClient prot) throws IOException, ProtocolException
- Executes an interactive protocol.
- Throws: ProtocolException
- if there is a problem with the protocol keys.
- Throws: IOException
- if there is a problem with the underlying streams.
All Packages Class Hierarchy This Package Previous Next Index