Class ExpiredNonceRemover

java.lang.Object
io.milton.http.http11.auth.ExpiredNonceRemover
All Implemented Interfaces:
Service, Stoppable, Runnable

public class ExpiredNonceRemover extends Object implements Runnable, Service
Periodically checks a map of Nonce's to remove those which have expired.

The map should be a reference to the live map in use by a NonceProvider

Author:
brad
  • Constructor Details

    • ExpiredNonceRemover

      public ExpiredNonceRemover(Map<UUID,Nonce> nonces, int nonceValiditySeconds)
  • Method Details

    • start

      public void start()
      Specified by:
      start in interface Service
    • stop

      public void stop()
      Specified by:
      stop in interface Stoppable
    • run

      public void run()
      Specified by:
      run in interface Runnable