Class cryptix.pgp.KeyClient
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.pgp.KeyClient

java.lang.Object
   |
   +----cryptix.pgp.KeyStore
           |
           +----cryptix.pgp.KeyClient

public class KeyClient
extends KeyStore
Base for the classes that fetch keys from keyservers.

Next version will cache keys, within and between sessions.

WebClient is the only class which currently extends this. Others can be easily written - they simply need to implement the fetch() function.


Copyright © 1995, 1996, 1997 Systemics Ltd on behalf of the Cryptix Development Team. All rights reserved.

Author:
Ian Brown

Variable Index

 o port
 o serverName

Constructor Index

 o KeyClient(String, int)
Set up variables for server connection

Method Index

 o fetch(EmailAddress)
 o fetch(EmailAddress, KeyID)
 o fetch(String)
fetch() is overridden by child classes to provide the 'meat' of these classes
 o getKey(EmailAddress)
 o getKey(EmailAddress, KeyID)
 o getKey(KeyID)
 o getKey(String)
 o getUserName(KeyID)

Variables

 o serverName
  protected String serverName
 o port
  protected int port

Constructors

 o KeyClient
  protected KeyClient(String name,
                      int port_) throws IOException, UnknownHostException
Set up variables for server connection

Methods

 o getKey
  public PublicKey getKey(String userName) throws IOException
Overrides:
getKey in class KeyStore
 o getKey
  public PublicKey getKey(EmailAddress address) throws IOException
 o getKey
  public PublicKey getKey(EmailAddress address,
                          KeyID keyID) throws IOException
 o getKey
  public PublicKey getKey(KeyID keyID) throws IOException
Overrides:
getKey in class KeyStore
 o getUserName
  public final String getUserName(KeyID keyID)
 o fetch
  protected abstract PublicKey fetch(String userName) throws IOException
fetch() is overridden by child classes to provide the 'meat' of these classes
 o fetch
  protected abstract PublicKey fetch(EmailAddress address,
                                     KeyID keyID) throws IOException
 o fetch
  protected abstract PublicKey fetch(EmailAddress address) throws IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index