All Implemented Interfaces:
Serializable, ConcurrentMap<Hash, SessionKey>, Map<Hash, SessionKey>

public class PersistentKeyRingextends KeyRing
ConcurrentHashMap with backing in the router.config file. router.keyring.key.{base64 hash, with = replaced with $}={base64 session key} Caution - not all HashMap methods are overridden.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Pinned for serialized-form compatibility.
      See Also:
    • _ctx

      private final transient RouterContext _ctx
      The context whose properties hold the keys.
    • PROP_PFX

      private static final String PROP_PFX
      Start of each stored key's property name.
      See Also:
  • Constructor Details

    • PersistentKeyRing

      public PersistentKeyRing(RouterContext ctx)
      Retains the context and loads any keys already persisted in the router config.
      Parameters:
      ctx - the router context, retained so keys can reach router.config
  • Method Details