cryptix.pgp
Class KeyStore

java.lang.Object
  extended bycryptix.pgp.KeyStore
Direct Known Subclasses:
KeyClient, KeyGlob, KeyRing

public abstract class KeyStore
extends java.lang.Object

Abstract base class for PGP keyrings and keyservers.

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

$Revision: 1.2 $

Since:
Cryptix 2.2 or earlier
Author:
Ian Brown
See Also:
KeyRing

Constructor Summary
KeyStore()
           
 
Method Summary
static boolean checkSignature(KeyStore store, Signature sig, Certificate cert, UserId username)
          Checks the signature sig on cert and username using the keys in store.
static boolean checkSignature(PublicKey key, Signature sig, Certificate cert, UserId username)
          Checks the signature sig on key's cert and username using the keys in store.
 boolean checkSignature(Signature sig, Certificate cert, UserId username)
          Checks the signature sig on cert and username using the keys in this keystore.
protected abstract  PublicKey getKey(KeyID keyID)
           
protected abstract  PublicKey getKey(java.lang.String username)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyStore

public KeyStore()
Method Detail

getKey

protected abstract PublicKey getKey(java.lang.String username)
                             throws java.io.IOException
Throws:
java.io.IOException

getKey

protected abstract PublicKey getKey(KeyID keyID)
                             throws java.io.IOException
Throws:
java.io.IOException

checkSignature

public final boolean checkSignature(Signature sig,
                                    Certificate cert,
                                    UserId username)
                             throws java.io.IOException
Checks the signature sig on cert and username using the keys in this keystore.

Throws:
java.io.IOException

checkSignature

public static boolean checkSignature(KeyStore store,
                                     Signature sig,
                                     Certificate cert,
                                     UserId username)
                              throws java.io.IOException
Checks the signature sig on cert and username using the keys in store.

Throws:
java.io.IOException

checkSignature

public static boolean checkSignature(PublicKey key,
                                     Signature sig,
                                     Certificate cert,
                                     UserId username)
                              throws java.io.IOException
Checks the signature sig on key's cert and username using the keys in store.

Throws:
java.io.IOException