All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.pgp.PublicKeyRing

java.lang.Object
   |
   +----cryptix.pgp.KeyStore
           |
           +----cryptix.pgp.KeyRing
                   |
                   +----cryptix.pgp.PublicKeyRing

public class PublicKeyRing
extends KeyRing
Represents a public keyring. Keys on it can be retrieved using the getKey() functions.

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

$Revision: 1.1.1.1 $

Author:
Mike Wynn, Ian Brown

Constructor Index

 o PublicKeyRing()
Creates an empty public keyring object.
 o PublicKeyRing(InputStream)
Creates a new public keyring object from in.
 o PublicKeyRing(String)
Creates a new public keyring object from the file filename.

Method Index

 o getKey(EmailAddress)
Retrieves a key by any of the e-mail addresses on it.
 o getKey(KeyID)
Retrieves a key by its ID.
 o getKey(String)
Retrieves a key by any of the user names on it.
 o init(PacketInputStream)
Subclasses should override this method to read entries from an InputStream.

Constructors

 o PublicKeyRing
 public PublicKeyRing()
Creates an empty public keyring object. Use the add method to add new entries.

 o PublicKeyRing
 public PublicKeyRing(InputStream in) throws IOException
Creates a new public keyring object from in.

Throws: IOException
if there was an I/O error
 o PublicKeyRing
 public PublicKeyRing(String filename) throws FileNotFoundException, IOException
Creates a new public keyring object from the file filename.

Throws: FileNotFoundException
if filename was not found
Throws: IOException
if there was an I/O error

Methods

 o getKey
 public PublicKey getKey(String username) throws IOException
Retrieves a key by any of the user names on it.

Overrides:
getKey in class KeyStore
 o getKey
 public PublicKey getKey(KeyID keyID) throws IOException
Retrieves a key by its ID.

Overrides:
getKey in class KeyStore
 o getKey
 public PublicKey getKey(EmailAddress address) throws IOException
Retrieves a key by any of the e-mail addresses on it.

 o init
 protected final void init(PacketInputStream reader) throws IOException
Subclasses should override this method to read entries from an InputStream.

Overrides:
init in class KeyRing

All Packages  Class Hierarchy  This Package  Previous  Next  Index