All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class AcmeNet.Assn3.SecureConnection
AcmeNet.Assn2.Connection
   |
   +----AcmeNet.Assn3.PrivateConnection
           |
           +----AcmeNet.Assn3.SecureConnection
  -  public class SecureConnection
  
-  extends PrivateConnection
  
A PrivateConnection that also authenticates the identity of the party on the
 other end.
    -  See Also:
    
 -  SecureService, AuthenticationService
 
  
  -  
	SecureConnection(Connection, String, long)
   -   
 
  
  -  
	getMyIdentity()
   -   Get the identity of the party at this end.
  
 -  
	getPeerIdentity()
   -   Get the authenticated identity of the party at the other end.
 
  
SecureConnection
 public SecureConnection(Connection c,
                         String myIdent,
                         long myCryptoKey) throws IOException
  
    -  Parameters:
    
 -  c - a Connection on which to build cryptographic privacy and authentication
    
-  myIdent - the username of the user owning this process
    
-  myCryptoKey - the private key of the user owning this process
    
   -  Throws: IOException
    
 -  an I/O error occurred
  
 
 
  
getPeerIdentity
 public String getPeerIdentity()
  -  Get the authenticated identity of the party at the other end.
  
    -  Returns:
    
 -  the authenticated identity of the party at the other end of this connection
  
 
 
 
getMyIdentity
 public String getMyIdentity()
  -  Get the identity of the party at this end.
  
    -  Returns:
    
 -  the identity of the party at this end of the connection
  
 
 
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index