java.lang.Object
net.i2p.router.web.FormHandler
net.i2p.router.web.helpers.ConfigKeyringHandler

public class ConfigKeyringHandlerextends FormHandler
Handles adding and revoking keys from the router keyring. Accepts destinations in base64, base32 .b32.i2p, or .i2p hostname form.
  • Field Details

    • _peer

      private String _peer
      Base64 of the peer being keyed.
    • _key

      private String _key
      The session key being added.
    • _secret

      private String _secret
      The tag secret being added.
    • _revokes

      private String[] _revokes
      Tags the form asks to revoke.
    • _mode

      private int _mode
      What the form asked to do.
  • Constructor Details

    • ConfigKeyringHandler

      public ConfigKeyringHandler()
      Constructor. The console builds this bean reflectively and fills it through the property setters, so every field starts null or zero.
  • Method Details

    • processForm

      protected void processForm()
      Description copied from class: FormHandler
      Implement this to perform the final processing (in turn, adding formNotice and formError messages, etc)

      Will only be called if _action is non-null and the nonce is valid.

      Specified by:
      processForm in class FormHandler
    • setPeer

      public void setPeer(String peer)
      Set the peer destination from form.
      Parameters:
      peer - the destination the keyring change applies to; trimmed of surrounding whitespace
    • setKey

      public void setKey(String key)
      Set the encryption key from form.
      Parameters:
      key - the encryption key
    • setNofilter_blindedPassword

      public void setNofilter_blindedPassword(String pw)
      Set the blinded lookup password from form.
      Parameters:
      pw - the blinded lookup password
    • setEncryptMode

      public void setEncryptMode(String m)
      Set the encryption type mode from form.
      Parameters:
      m - the encryption mode string
    • setRevokeClient

      public void setRevokeClient(String[] revokes)
      Set the list of destinations to revoke from keyring.
      Parameters:
      revokes - the list of destinations to revoke