All Packages Class Hierarchy This Package Previous Next Index
Class is.logi.crypto.io.CipherStreamServer
java.lang.Object
|
+----is.logi.crypto.Crypto
|
+----is.logi.crypto.io.CipherStream
|
+----is.logi.crypto.io.CipherStreamServer
- public class CipherStreamServer
- 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 client class.
- Author:
- Logi Ragnarsson
(logir@hi.is)
- See Also:
- CipherStreamClient
-
CipherStreamServer(InputStream, OutputStream, InterKeyExServer, EncryptMode, DecryptMode)
- Create a new CipherStreamServer object and ecxhange keys.
-
execute(InterProtocolServer)
- Executes an interactive protocol.
CipherStreamServer
public CipherStreamServer(InputStream in,
OutputStream out,
InterKeyExServer kex,
EncryptMode encrypt,
DecryptMode decrypt) throws ProtocolException, IOException
- Create a new CipherStreamServer object and ecxhange keys.
Create a new object which uses kex
to exchange keys with
a remote client 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(InterProtocolServer 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