java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.tasks.UpdateRoutingKeyModifierJob
All Implemented Interfaces:
Job

public class UpdateRoutingKeyModifierJobextends JobImpl
Update the routing Key modifier every day at midnight (plus on startup). This is done here because we want to make sure the key is updated before anyone uses it.
  • Field Details

    • MAX_DELAY_FAILSAFE

      private static final long MAX_DELAY_FAILSAFE
      Longest the job may be delayed, 15 min. It runs about that often, in case of a time zone change or clock skew.
      See Also:
  • Constructor Details

    • UpdateRoutingKeyModifierJob

      public UpdateRoutingKeyModifierJob(RouterContext ctx)
      Create a new routing key modifier update job.
      Parameters:
      ctx - the router context for accessing router services
  • Method Details

    • getName

      public String getName()
      Name of this job.
      Returns:
      job name for logging and identification
    • runJob

      public void runJob()
      Update the routing key modifier if needed.

      This job runs periodically (every 15 minutes maximum) to ensure the routing key modifier is updated daily at midnight. The routing key modifier is used in cryptographic operations and must be updated regularly for security.

      If the modifier data changes, notifies the network database that routing keys have changed.