net.i2p.crypto
Interface KeyRing

All Known Implementing Classes:
DirKeyRing

public interface KeyRing

A backend for storing and retrieving SigningPublicKeys to be used for verifying signatures.

Since:
0.9.9

Method Summary
 PublicKey getKey(String keyName, String scope, SigType type)
          Get a key.
 void setKey(String keyName, String scope, PublicKey key)
          Store a key.
 

Method Detail

getKey

PublicKey getKey(String keyName,
                 String scope,
                 SigType type)
                 throws GeneralSecurityException,
                        IOException
Get a key. Throws on all errors.

Parameters:
scope - a domain identifier, indicating router update, reseed, etc.
Returns:
null if none
Throws:
GeneralSecurityException
IOException

setKey

void setKey(String keyName,
            String scope,
            PublicKey key)
            throws GeneralSecurityException,
                   IOException
Store a key. Throws on all errors.

Parameters:
scope - a domain identifier, indicating router update, reseed, etc.
Throws:
GeneralSecurityException
IOException