java.lang.Object
java.lang.Throwable
java.lang.Exception
net.i2p.i2pcontrol.security.ExpiredAuthTokenException
All Implemented Interfaces:
Serializable

public class ExpiredAuthTokenExceptionextends Exception
Exception thrown when an authentication token has expired. Indicates that the provided token is no longer valid for API access.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Pinned for serialized-form compatibility.
      See Also:
    • expiryTime

      private String expiryTime
      Expiry time
  • Constructor Details

    • ExpiredAuthTokenException

      public ExpiredAuthTokenException(String str, String expiryTime)
      Signals that the authentication token presented with an API request is past its expiry, so the request was refused.
      Parameters:
      str - message describing why the token was rejected
      expiryTime - when the rejected token expired
  • Method Details

    • getExpirytime

      public String 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