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

Constructor Index

 o SecureConnection(Connection, String, long)

Method Index

 o getMyIdentity()
Get the identity of the party at this end.
 o getPeerIdentity()
Get the authenticated identity of the party at the other end.

Constructors

 o 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

Methods

 o 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
 o 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