java.lang.Object
java.lang.Throwable
java.lang.Exception
net.i2p.i2pcontrol.security.ExpiredAuthTokenException
- All Implemented Interfaces:
Serializable
Exception thrown when an authentication token has expired. Indicates that the provided token is no longer valid for API access.
- See Also:
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringExpiry timeprivate static final longPinned for serialized-form compatibility.Constructor Summary
ConstructorsConstructorDescriptionExpiredAuthTokenException(String str, String expiryTime) Signals that the authentication token presented with an API request is past its expiry, so the request was refused.Method Summary
All MethodsModifier and TypeMethodDescriptionReport when the token presented in the failed request expired, so the caller can tell the client which token to discard and renew.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Field Details
serialVersionUID
private static final long serialVersionUIDPinned for serialized-form compatibility.- See Also:
expiryTime
Expiry time
Constructor Details
ExpiredAuthTokenException
Method Details
getExpirytime
Report when the token presented in the failed request expired, so the caller can tell the client which token to discard and renew.- Returns:
- the expiry time