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
-
PublicKeyRing()
- Creates an empty public keyring object.
-
PublicKeyRing(InputStream)
- Creates a new public keyring object from in.
-
PublicKeyRing(String)
- Creates a new public keyring object from the file filename.
-
getKey(EmailAddress)
- Retrieves a key by any of the e-mail addresses on it.
-
getKey(KeyID)
- Retrieves a key by its ID.
-
getKey(String)
- Retrieves a key by any of the user names on it.
-
init(PacketInputStream)
- Subclasses should override this method to read entries from
an InputStream.
PublicKeyRing
public PublicKeyRing()
- Creates an empty public keyring object. Use the
add
method to add new entries.
PublicKeyRing
public PublicKeyRing(InputStream in) throws IOException
- Creates a new public keyring object from in.
- Throws: IOException
- if there was an I/O error
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
getKey
public PublicKey getKey(String username) throws IOException
- Retrieves a key by any of the user names on it.
- Overrides:
- getKey in class KeyStore
getKey
public PublicKey getKey(KeyID keyID) throws IOException
- Retrieves a key by its ID.
- Overrides:
- getKey in class KeyStore
getKey
public PublicKey getKey(EmailAddress address) throws IOException
- Retrieves a key by any of the e-mail addresses on it.
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