All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class AcmeNet.Assn3.PrivateConnection
AcmeNet.Assn2.Connection
   |
   +----AcmeNet.Assn3.PrivateConnection
  -  public class PrivateConnection
  
-  extends Connection
  
A Connection that implements private communication.  "Private" means that the communication is
 protected by encryption, with separate crypto keys used to protect data traveling in different
 directions along the connection.
 
 This class is a "wrapper" class: you use it to establish private communication on a Connection
 that is already set up and connected to the right place.  The other end had better wrap the 
 Connection in a PrivateConnection at the same time you do, or else confusion will ensue.
    -  See Also:
    
 -  PrivateService, AcmeCipher
 
  
  -  
	PrivateConnection(Connection)
   -   Set up encrypted communication on an existing Connection.
 
  
  -  
	rekeyInCipher(long)
   -   Start using a new key on the incoming side of this Connection.
  
 -  
	rekeyOutCipher(long)
   -   Start using a new key on the outgoing side of this Connection.
 
  
PrivateConnection
 public PrivateConnection(Connection c) throws IOException
  -  Set up encrypted communication on an existing Connection.
  
    -  Parameters:
    
 -  c - the Connection on which to set up encrypted communication
    
 -  Throws: IOException
    
 -  an I/O error occurred
  
 
 
 
  
rekeyInCipher
 protected void rekeyInCipher(long newKey)
  -  Start using a new key on the incoming side of this Connection.
  
    -  Parameters:
    
 -  newKey - the new key
  
 
 
 
rekeyOutCipher
 protected void rekeyOutCipher(long newKey)
  -  Start using a new key on the outgoing side of this Connection.
  
    -  Parameters:
    
 -  newKey - the new key
  
 
 
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index