Package io.jans.fido2.exception.mds
Class MdsRateLimitedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.jans.fido2.exception.Fido2RuntimeException
io.jans.fido2.exception.mds.MdsRateLimitedException
- All Implemented Interfaces:
Serializable
Raised when the FIDO Metadata Service answers a TOC download with HTTP 429 (Too Many Requests).
This is deliberately distinct from a generic download failure: a 429 is the endpoint explicitly
asking us to stop, so retrying it immediately makes the situation worse rather than better. Callers
that retry failed downloads should treat this exception as "do not retry now" and honour
getRetryAfterSeconds() when it is present.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.jans.fido2.exception.Fido2RuntimeException
getFormattedMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MdsRateLimitedException
-
-
Method Details
-
getRetryAfterSeconds
- Returns:
- the delay advertised by the server's
Retry-Afterheader, ornullwhen the header was absent or unparseable.
-