All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.pgp.KeyClient

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

public abstract class KeyClient
extends KeyStore
Superclass 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-1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.1.1.1 $

Author:
Ian Brown, Zoran Rajic

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 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
 o getUserName
 public abstract String getUserName(KeyID keyID)

All Packages  Class Hierarchy  This Package  Previous  Next  Index