java.lang.Object
net.i2p.router.web.HelperBase
net.i2p.router.web.helpers.ReseedHandler

public class ReseedHandlerextends HelperBase
Handler to deal with reseed requests.
  • Field Details

    • _session

      private HttpSession _session
      The session the reseed request arrives on.
  • Constructor Details

    • ReseedHandler

      public ReseedHandler()
      Uses the current console router context.
    • ReseedHandler

      public ReseedHandler(RouterContext ctx)
      Binds the handler to the router context owning the reseed checker.
      Parameters:
      ctx - the router context whose reseed checker this handler triggers
  • Method Details

    • storeSession

      public void storeSession(HttpSession session)
      For form validation.
      Parameters:
      session - the console session holding the nonce to validate later
    • setReseedNonce

      public void setReseedNonce(String nonce)
      StoreSession MUST be called first.
      Parameters:
      nonce - the submitted nonce, matched against the session and then the system property; a null value is ignored
    • requestReseed

      private void requestReseed()
      Starts a reseed when the form asks for one.