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
-
SecretKeyRing()
-
-
SecretKeyRing(InputStream)
- Create a new secret keyring object from
in
.
-
SecretKeyRing(String)
- Create a new secret keyring object from the file
filename
.
-
getKey(EmailAddress, Passphrase)
- Retrieve a key by any of the e-mail addresses on it.
-
getKey(KeyID)
- DON'T USE THIS - it's only in to allow SecretKeyRing to fit into
this class hierarchy.
-
getKey(KeyID, Passphrase)
- Retrieve a key by its ID.
-
getKey(String)
- DON'T USE THIS - it's only in to allow SecretKeyRing to fit into
this class hierarchy.
-
getKey(String, Passphrase)
- Retrieve a key by any of the user names on it.
-
getKeyTrust(KeyID)
- How much is the key with ID keyId trusted by this user?
-
init(PacketInputStream)
-
SecretKeyRing
public SecretKeyRing()
SecretKeyRing
public SecretKeyRing(InputStream in) throws IOException
- Create a new secret keyring object from
in
.
SecretKeyRing
public SecretKeyRing(String filename) throws FileNotFoundException, IOException
- Create a new secret keyring object from the file
filename
.
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
getKey
public final SecretKey getKey(String username,
Passphrase passphrase) throws IOException, DecryptException
- Retrieve a key by any of the user names on it.
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
getKey
public final SecretKey getKey(KeyID keyID,
Passphrase passphrase) throws DecryptException
- Retrieve a key by its ID.
getKey
public final SecretKey getKey(EmailAddress address,
Passphrase passphrase) throws DecryptException
- Retrieve a key by any of the e-mail addresses on it.
getKeyTrust
public final int getKeyTrust(KeyID keyId)
- How much is the key with ID keyId trusted by this user?
- Overrides:
- getKeyTrust in class KeyRing
init
protected final void init(PacketInputStream reader) throws IOException
- Overrides:
- init in class KeyRing
All Packages Class Hierarchy This Package Previous Next Index