br.shob.client
Class SignedConnection

java.lang.Object
  |
  +--br.shob.client.SignedConnection
All Implemented Interfaces:
Runnable

public class SignedConnection
extends Object
implements Runnable

A signed connection handles incoming connections to a client. The handshaking process after the connection begins consists in:

  1. The caller sends his identification URL;
  2. The receiver uses this url to get the caller's public key. Further communication must be signed;
  3. The caller sends a br.shob.Message and the receiver replies;
  4. The connection is closed;

Author:
crolmos, dukejeffrie
Created:
March 23, 2001

Constructor Summary
SignedConnection(ClientCommLayer commLayer, Socket socket)
          Constructor for the SignedConnection object
 
Method Summary
 void run()
          Main processing method for the SignedConnection object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignedConnection

public SignedConnection(ClientCommLayer commLayer,
                        Socket socket)
Constructor for the SignedConnection object

Parameters:
commLayer - the communication layer that uses this connection
socket - the socket created for the connection
Method Detail

run

public void run()
Main processing method for the SignedConnection object

Specified by:
run in interface Runnable