From 4e4a9204c7f8cb74dd3da596e0d39d57491c6a41 Mon Sep 17 00:00:00 2001 From: Misagh Moayyed Date: Fri, 17 Apr 2026 08:29:47 -0700 Subject: [PATCH 1/2] feat: support smart-card attachment hint --- .../com/yubico/fido/metadata/AttachmentHint.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/webauthn-server-attestation/src/main/java/com/yubico/fido/metadata/AttachmentHint.java b/webauthn-server-attestation/src/main/java/com/yubico/fido/metadata/AttachmentHint.java index 6cbd675e7..4a66b304b 100644 --- a/webauthn-server-attestation/src/main/java/com/yubico/fido/metadata/AttachmentHint.java +++ b/webauthn-server-attestation/src/main/java/com/yubico/fido/metadata/AttachmentHint.java @@ -129,7 +129,18 @@ public enum AttachmentHint { * href="https://fidoalliance.org/specs/common-specs/fido-registry-v2.2-rd-20210525.html#authenticator-attachment-hints">FIDO * Registry of Predefined Values §3.4 Authenticator Attachment Hints */ - ATTACHMENT_HINT_WIFI_DIRECT(0x0100, "wifi_direct"); + ATTACHMENT_HINT_WIFI_DIRECT(0x0100, "wifi_direct"), + + /** + * This flag MAY be set to indicate that an external authenticator is able to communicate + * by ISO7816 messages with the FIDO User Device. As part of authenticator metadata, + * or when reporting characteristics through discovery, if this flag is set, the {@link #ATTACHMENT_HINT_WIRED} + * flag SHOULD also be set. + * @see FIDO + * Registry of Predefined Values §3.4 Authenticator Attachment Hints + */ + ATTACHMENT_HINT_SMART_CARD(0x0200, "smart-card"); private final int value; From 955fce7abe83b25a9b0520dc20b3a6b1614c356b Mon Sep 17 00:00:00 2001 From: Misagh Moayyed Date: Fri, 17 Apr 2026 08:37:07 -0700 Subject: [PATCH 2/2] fix formatting issues --- .../java/com/yubico/fido/metadata/AttachmentHint.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/webauthn-server-attestation/src/main/java/com/yubico/fido/metadata/AttachmentHint.java b/webauthn-server-attestation/src/main/java/com/yubico/fido/metadata/AttachmentHint.java index 4a66b304b..554502314 100644 --- a/webauthn-server-attestation/src/main/java/com/yubico/fido/metadata/AttachmentHint.java +++ b/webauthn-server-attestation/src/main/java/com/yubico/fido/metadata/AttachmentHint.java @@ -132,10 +132,11 @@ public enum AttachmentHint { ATTACHMENT_HINT_WIFI_DIRECT(0x0100, "wifi_direct"), /** - * This flag MAY be set to indicate that an external authenticator is able to communicate - * by ISO7816 messages with the FIDO User Device. As part of authenticator metadata, - * or when reporting characteristics through discovery, if this flag is set, the {@link #ATTACHMENT_HINT_WIRED} - * flag SHOULD also be set. + * This flag MAY be set to indicate that an external authenticator is able to communicate by + * ISO7816 messages with the FIDO User Device. As part of authenticator metadata, or when + * reporting characteristics through discovery, if this flag is set, the {@link + * #ATTACHMENT_HINT_WIRED} flag SHOULD also be set. + * * @see FIDO * Registry of Predefined Values §3.4 Authenticator Attachment Hints