Class AccountRateLimitExceededException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.irurueta.authserver.authorization.api.web.account.AccountRateLimitExceededException
All Implemented Interfaces:
Serializable

public class AccountRateLimitExceededException extends RuntimeException
A client address or an e-mail address made more account requests than its window allows. It is answered with 429 Too Many Requests.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version.
      See Also:
    • retryAfter

      private final Duration retryAfter
      How long until the window ends and requests are accepted again.
  • Constructor Details

    • AccountRateLimitExceededException

      public AccountRateLimitExceededException(Duration retryAfter)
      Creates the exception.
      Parameters:
      retryAfter - how long until requests are accepted again.
  • Method Details

    • getRetryAfter

      public Duration getRetryAfter()
      Returns how long until requests are accepted again.
      Returns:
      the remaining time of the window.