Class OttRateLimitExceededException

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

public class OttRateLimitExceededException extends RuntimeException
A client address or an identifier requested or submitted more one-time tokens 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

    • OttRateLimitExceededException

      public OttRateLimitExceededException(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.