Package co.ankatech.ankasecure.sdk.auth
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
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 Summary
ConstructorsConstructorDescriptionExternalTokenException(String message) ExternalTokenException(String message, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ExternalTokenException
-
ExternalTokenException
-