Class Fido2TrustException

All Implemented Interfaces:
Serializable

public class Fido2TrustException extends Fido2RuntimeException
A Fido2RuntimeException that also carries why the attestation was not trusted.

It is a subclass rather than a new exception type on purpose: every existing catch (Fido2RuntimeException) continues to catch it, and the status and message it is constructed with are the same ones the plain exception carried. Nothing about the rejection changes — the diagnostic code simply travels with the failure so metrics can record it instead of a free-text message.

Trust failures that must surface as a FIDO error envelope throw a WebApplicationException instead; those sites pass an instance of this class as the cause, which is where the diagnostic resolver finds it.

Author:
Janssen Project
See Also: