Class ExternalTokenException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
co.ankatech.ankasecure.sdk.auth.ExternalTokenException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ClientCredentialsExchangeException, ExternalIssuerAdmissionException

public class ExternalTokenException extends RuntimeException
An externally minted token could not be obtained from its configured source.

Distinct from a rejection by ANKASecure, and that distinction is the whole reason this type exists. The platform answers every federated failure with the same opaque 401 invalid_client - by design, so a caller cannot probe which cause applied - so an operator whose token file is simply missing would otherwise be told their credential is invalid and would go and re-issue a perfectly good one.

The message names the SOURCE (a path, a command name, a reason) and never the token.

See Also:
  • Constructor Details

    • ExternalTokenException

      public ExternalTokenException(String message)
    • ExternalTokenException

      public ExternalTokenException(String message, Throwable cause)