Package 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 Details
-
getKey
PublicKey getKey(String keyName, String scope, SigType type) throws GeneralSecurityException, IOExceptionGet 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, IOExceptionStore a key. Throws on all errors.- Parameters:
scope
- a domain identifier, indicating router update, reseed, etc.- Throws:
GeneralSecurityException
IOException
-