Class cryptix.pgp.PublicKeyRing
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, 1996, 1997 Systemics Ltd on behalf of the Cryptix Development Team. All rights reserved.

Author:
Mike Wynn, Ian Brown

Constructor Index

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

Method Index

 o getKey(EmailAddress)
Retrieve a key by any of the e-mail addresses on it.
 o getKey(KeyID)
Retrieve a key by its ID.
 o getKey(String)
Retrieve a key by any of the user names on it.
 o init(PacketInputStream)

Constructors

 o PublicKeyRing
  public PublicKeyRing()
 o PublicKeyRing
  public PublicKeyRing(InputStream in) throws IOException
Create a new public keyring object from in.
 o PublicKeyRing
  public PublicKeyRing(String filename) throws FileNotFoundException, IOException
Create a new public keyring object from the file filename.

Methods

 o getKey
  public PublicKey getKey(String username) throws IOException
Retrieve a key by any of the user names on it.
Overrides:
getKey in class KeyStore
 o getKey
  public PublicKey getKey(KeyID keyID) throws IOException
Retrieve a key by its ID.
Overrides:
getKey in class KeyStore
 o getKey
  public PublicKey getKey(EmailAddress address) throws IOException
Retrieve a key by any of the e-mail addresses on it.
 o init
  protected final void init(PacketInputStream reader) throws IOException
Overrides:
init in class KeyRing

All Packages  Class Hierarchy  This Package  Previous  Next  Index