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.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `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`