br.shob
Class HostId

java.lang.Object
  |
  +--br.shob.HostId
All Implemented Interfaces:
Serializable

public class HostId
extends Object
implements Serializable

Encapsulates all the information needed to communicate with a host.

Version:
$Revision: 1.4 $
Author:
crolmos, dukejeffrie
See Also:
Serialized Form
Created:
August 30, 2001

Constructor Summary
protected HostId()
          Creates new HostId
  HostId(URL url, PublicKey key)
          constructs a new instance of a HostId object.
 
Method Summary
 PublicKey getKey()
          accessor for the public key of the host.
 URL getURL()
          accessor for the URL of the host.
 String toString()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HostId

public HostId(URL url,
              PublicKey key)
constructs a new instance of a HostId object.

Parameters:
url - the URL of the host.
key - the public key for this host.

HostId

protected HostId()
Creates new HostId

Method Detail

getKey

public PublicKey getKey()
accessor for the public key of the host.

Returns:
the public key.

getURL

public URL getURL()
accessor for the URL of the host.

Returns:
the URL.

toString

public String toString()
Description of the Method

Overrides:
toString in class Object
Returns:
Description of the Return Value