From e14123a5a103254044784d6b49e69ceeaee9d36c Mon Sep 17 00:00:00 2001 From: Emil Lundberg Date: Wed, 9 Nov 2022 19:48:52 +0100 Subject: [PATCH] Fix broken JavaDoc for RegistrationResult.attestationType and .attestationTrustPath --- NEWS | 2 +- .../yubico/webauthn/RegistrationResult.java | 37 ++++++++++--------- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/NEWS b/NEWS index bd2b74204..1a2f0beea 100644 --- a/NEWS +++ b/NEWS @@ -9,7 +9,7 @@ Fixes: in the Subject Alternative Names extension. ** Thanks to Oussama Zgheb for the contribution, see https://github.com/Yubico/java-webauthn-server/pull/241 -* Fixed various link syntax errors in JavaDocs. +* Fixed various errors in JavaDoc. `webauthn-server-attestation`: diff --git a/webauthn-server-core/src/main/java/com/yubico/webauthn/RegistrationResult.java b/webauthn-server-core/src/main/java/com/yubico/webauthn/RegistrationResult.java index 56d7a0b39..1e4eb01b7 100644 --- a/webauthn-server-core/src/main/java/com/yubico/webauthn/RegistrationResult.java +++ b/webauthn-server-core/src/main/java/com/yubico/webauthn/RegistrationResult.java @@ -89,9 +89,9 @@ public class RegistrationResult { private final boolean attestationTrusted; /** - * The attestation type ยง6.4.3. - * Attestation Types that was used for the created credential. + * The attestation + * type that was used for the created credential. * *

You can ignore this if authenticator attestation is not relevant to your application. * @@ -101,21 +101,7 @@ public class RegistrationResult { */ @NonNull private final AttestationType attestationType; - /** - * The attestation - * trust path for the created credential, if any. - * - *

If present, this may be useful for looking up attestation metadata from external sources. - * The attestation trust path has been successfully verified as trusted if and only if {@link - * #isAttestationTrusted()} is true. - * - *

You can ignore this if authenticator attestation is not relevant to your application. - * - * @see Attestation - * trust path - */ + // JavaDoc on getter private final List attestationTrustPath; /** @@ -200,6 +186,21 @@ private static RegistrationResult fromJson( authenticatorExtensionOutputs); } + /** + * The attestation + * trust path for the created credential, if any. + * + *

If present, this may be useful for looking up attestation metadata from external sources. + * The attestation trust path has been successfully verified as trusted if and only if {@link + * #isAttestationTrusted()} is true. + * + *

You can ignore this if authenticator attestation is not relevant to your application. + * + * @see Attestation + * trust path + */ @JsonIgnore public Optional> getAttestationTrustPath() { return Optional.ofNullable(attestationTrustPath);