Enum AttestationTrustDiagnostic
- All Implemented Interfaces:
Serializable,Comparable<AttestationTrustDiagnostic>,java.lang.constant.Constable
Without these, an unknown AAGUID, an authenticator blocked by an MDS status report and an untrusted root certificate are indistinguishable from each other — and from any other registration failure — once they reach the metrics store as free-text exception messages.
A code is written to Fido2MetricsEntry.errorReason, with CATEGORY as the error
category, so rejections can be counted by cause. These are strictly internal: the public FIDO
response envelope is unchanged and a code never reaches the client body.
- Author:
- Janssen Project
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe authenticator's AAGUID is not present in the loaded TOC entries.Apple attestation was attempted while the Apple WebAuthn root CA is absent.The attestation statement format is not one the effective mode permits.The authenticator is blocked by an MDS status report (revoked, compromised, and so on).The loaded TOC blob was past itsnextUpdatewhen the authenticator was validated.Metadata was required by the effective attestation mode, but none could be obtained.The attestation certificate chain did not verify to a trusted root. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisDiagnosticCode(String errorReason) Whether a recordederrorReasonis one of these diagnostic codes.static AttestationTrustDiagnosticReturns the enum constant of this type with the specified name.static AttestationTrustDiagnostic[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
JFS_AAGUID_NOT_IN_MDS
The authenticator's AAGUID is not present in the loaded TOC entries. -
JFS_MDS_METADATA_EXPIRED
The loaded TOC blob was past itsnextUpdatewhen the authenticator was validated. -
JFS_MDS_UNAVAILABLE
Metadata was required by the effective attestation mode, but none could be obtained. -
JFS_ATTESTATION_FORMAT_NOT_PERMITTED
The attestation statement format is not one the effective mode permits. -
JFS_ROOT_CERT_NOT_TRUSTED
The attestation certificate chain did not verify to a trusted root. -
JFS_APPLE_ROOT_CA_MISSING
Apple attestation was attempted while the Apple WebAuthn root CA is absent. -
JFS_AUTHENTICATOR_STATUS_UNACCEPTABLE
The authenticator is blocked by an MDS status report (revoked, compromised, and so on).
-
-
Field Details
-
CATEGORY
Value written toFido2MetricsEntry.errorCategoryfor every code in this enum.- See Also:
-
CODE_PREFIX
Shared prefix for internal diagnostic codes, of which these are the attestation-trust subset.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isDiagnosticCode
Whether a recordederrorReasonis one of these diagnostic codes.Deliberately matched against the enum values rather than the shared
CODE_PREFIX: the native-metrics work writes its ownJFS_codes into the sameerrorReasonfield, and a prefix test would file those underCATEGORYtoo — quietly inflating the attestation-rejection analytics with rejections that have nothing to do with attestation trust.- Parameters:
errorReason- the recorded reason; may be null- Returns:
- true when the reason is an attestation-trust diagnostic code
-