cryptix.pgp
Class PublicKeyRing
java.lang.Object
|
+--cryptix.pgp.KeyStore
|
+--cryptix.pgp.KeyRing
|
+--cryptix.pgp.PublicKeyRing
- Direct Known Subclasses:
- KeyCache
- 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 $
- Since:
- Cryptix 2.2 or earlier
- Author:
- Mike Wynn, Ian Brown
Constructor Summary |
PublicKeyRing()
Creates an empty public keyring object. |
PublicKeyRing(java.io.InputStream in)
Creates a new public keyring object from in. |
PublicKeyRing(java.lang.String filename)
Creates a new public keyring object from the file filename. |
Methods inherited from class cryptix.pgp.KeyRing |
add, checkSignatures, checkSignatures, dump, getFullNameList, getFullUserNameList, getIfBegins, getKeyTrust, getPublicKey, getPublicKey, getSecretKey, getSecretKey, getUserName, list, write |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PublicKeyRing
public PublicKeyRing()
- Creates an empty public keyring object. Use the
add
method to add new entries.
PublicKeyRing
public PublicKeyRing(java.io.InputStream in)
throws java.io.IOException
- Creates a new public keyring object from in.
- Throws:
java.io.IOException
- if there was an I/O error
PublicKeyRing
public PublicKeyRing(java.lang.String filename)
throws java.io.FileNotFoundException,
java.io.IOException
- Creates a new public keyring object from the file filename.
- Throws:
java.io.FileNotFoundException
- if filename was not foundjava.io.IOException
- if there was an I/O error
getKey
public PublicKey getKey(java.lang.String username)
throws java.io.IOException
- Retrieves a key by any of the user names on it.
- Overrides:
getKey
in class KeyStore
getKey
public PublicKey getKey(KeyID keyID)
throws java.io.IOException
- Retrieves a key by its ID.
- Overrides:
getKey
in class KeyStore
getKey
public PublicKey getKey(EmailAddress address)
throws java.io.IOException
- Retrieves a key by any of the e-mail addresses on it.
init
protected final void init(PacketInputStream reader)
throws java.io.IOException
- Description copied from class:
KeyRing
- Subclasses should override this method to read entries from
an InputStream.
- Overrides:
init
in class KeyRing