|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcryptix.pgp.KeyStore
cryptix.pgp.KeyRing
cryptix.pgp.PublicKeyRing
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 $
Field Summary |
Fields inherited from class cryptix.pgp.KeyRing |
addresses, entriesById, users |
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. |
Method Summary | |
PublicKey |
getKey(EmailAddress address)
Retrieves a key by any of the e-mail addresses on it. |
PublicKey |
getKey(KeyID keyID)
Retrieves a key by its ID. |
PublicKey |
getKey(java.lang.String username)
Retrieves a key by any of the user names on it. |
protected void |
init(PacketInputStream reader)
Subclasses should override this method to read entries from an InputStream. |
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 cryptix.pgp.KeyStore |
checkSignature, checkSignature, checkSignature |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PublicKeyRing()
add
method to add new entries.
public PublicKeyRing(java.io.InputStream in) throws java.io.IOException
java.io.IOException
- if there was an I/O errorpublic PublicKeyRing(java.lang.String filename) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
- if filename was not found
java.io.IOException
- if there was an I/O errorMethod Detail |
public PublicKey getKey(java.lang.String username) throws java.io.IOException
getKey
in class KeyStore
java.io.IOException
public PublicKey getKey(KeyID keyID) throws java.io.IOException
getKey
in class KeyStore
java.io.IOException
public PublicKey getKey(EmailAddress address) throws java.io.IOException
java.io.IOException
protected final void init(PacketInputStream reader) throws java.io.IOException
KeyRing
init
in class KeyRing
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |