java.lang.Object
net.i2p.i2ptunnel.access.FilterDefinitionElement
net.i2p.i2ptunnel.access.ExplicitFilterDefinitionElement

class ExplicitFilterDefinitionElementextends FilterDefinitionElement
Filter definition element for a single explicitly defined remote destination.

Defines access control for a specific remote destination using a .b32 address, applying the given threshold to limit connection behavior from that destination.

  • Field Details

    • hash

      private final Hash hash
      The destination this rule matches, decoded from its address.
  • Constructor Details

    • ExplicitFilterDefinitionElement

      ExplicitFilterDefinitionElement(String b32, Threshold threshold) throws InvalidDefinitionException
      Create an element for the single destination named by the address, and decode it to the hash used as the tracker's key.
      Parameters:
      b32 - A string with the .b32 representation of the remote destination
      threshold - threshold to apply to that destination
      Throws:
      InvalidDefinitionException - if the b32 string is not valid b32
  • Method Details