All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class is.hi.logir.cryptonite.CipherStreamServer

java.lang.Object
   |
   +----is.hi.logir.cryptonite.Cryptonite
           |
           +----is.hi.logir.cryptonite.CipherStream
                   |
                   +----is.hi.logir.cryptonite.CipherStreamServer

public class CipherStreamServer
extends CipherStream
This class can be used to apply an interactive key exchange protocol to a pair f 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, InterKeyExServer

Constructor Index

 o CipherStreamServer(InputStream, OutputStream, InterKeyExServer, EncryptMode, DecryptMode)
Create a new object which uses kex to exchange keys with a remote client and then encrypt and decrypt to encrypt and decrypt the data to/from in and out.

Constructors

 o CipherStreamServer
 public CipherStreamServer(InputStream in,
                           OutputStream out,
                           InterKeyExServer kex,
                           EncryptMode encrypt,
                           DecryptMode decrypt) throws ProtocolException, IOException
Create a new object which uses kex to exchange keys with a remote client and then encrypt and decrypt to encrypt and decrypt the data to/from in and out.

Throws: ProtocolException
if there is a problem exchanging keys.
Throws: IOException
if there is a problem with the underlying streams.

All Packages  Class Hierarchy  This Package  Previous  Next  Index