Class cryptix.pgp.SecretKeyRing
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.pgp.SecretKeyRing

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

public final class SecretKeyRing
extends KeyRing
Represents a secret keyring. Use the getKey() functions to retrieve a key.


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

Author:
Mike Wynn, Ian Brown

Constructor Index

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

Method Index

 o getKey(EmailAddress, Passphrase)
Retrieve a key by any of the e-mail addresses on it.
 o getKey(KeyID)
DON'T USE THIS - it's only in to allow SecretKeyRing to fit into this class hierarchy.
 o getKey(KeyID, Passphrase)
Retrieve a key by its ID.
 o getKey(String)
DON'T USE THIS - it's only in to allow SecretKeyRing to fit into this class hierarchy.
 o getKey(String, Passphrase)
Retrieve a key by any of the user names on it.
 o getKeyTrust(KeyID)
How much is the key with ID keyId trusted by this user?
 o init(PacketInputStream)

Constructors

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

Methods

 o getKey
  public final PublicKey getKey(String username) throws FormatException
DON'T USE THIS - it's only in to allow SecretKeyRing to fit into this class hierarchy. null is always returned as a passphrase is needed to decrypt the key first.
Overrides:
getKey in class KeyStore
 o getKey
  public final SecretKey getKey(String username,
                                Passphrase passphrase) throws IOException, DecryptException
Retrieve a key by any of the user names on it.
 o getKey
  public final PublicKey getKey(KeyID keyID)
DON'T USE THIS - it's only in to allow SecretKeyRing to fit into this class hierarchy. null is always returned as a passphrase is needed to decrypt the key first.
Overrides:
getKey in class KeyStore
 o getKey
  public final SecretKey getKey(KeyID keyID,
                                Passphrase passphrase) throws DecryptException
Retrieve a key by its ID.
 o getKey
  public final SecretKey getKey(EmailAddress address,
                                Passphrase passphrase) throws DecryptException
Retrieve a key by any of the e-mail addresses on it.
 o getKeyTrust
  public final int getKeyTrust(KeyID keyId)
How much is the key with ID keyId trusted by this user?
Overrides:
getKeyTrust in class KeyRing
 o init
  protected final void init(PacketInputStream reader) throws IOException
Overrides:
init in class KeyRing

All Packages  Class Hierarchy  This Package  Previous  Next  Index