Interface AttemptRule

All Known Implementing Classes:
AttemptRuleDefault

public interface AttemptRule
An attempt rule.

You need to register those using AttemptsManager.registerAttempRule(AttemptRule).

  • Method Details

    • getActionName

      String getActionName()
      The action to protect.
    • getNbrMaxAttemptsPerDuration

      int getNbrMaxAttemptsPerDuration()
      The number of allowed attempts in a given duration.
    • getDuration

      Duration getDuration()
      The duration in which a maximum number of attempts is allowed.