|
28 | 28 | import com.fasterxml.jackson.annotation.JsonProperty;
|
29 | 29 | import com.fasterxml.jackson.core.type.TypeReference;
|
30 | 30 | import com.yubico.internal.util.JacksonCodecs;
|
| 31 | +import com.yubico.webauthn.AssertionResult; |
| 32 | +import com.yubico.webauthn.FinishAssertionOptions; |
| 33 | +import com.yubico.webauthn.FinishRegistrationOptions; |
| 34 | +import com.yubico.webauthn.RegistrationResult; |
| 35 | +import com.yubico.webauthn.RelyingParty; |
31 | 36 | import java.io.IOException;
|
32 | 37 | import java.util.Optional;
|
33 | 38 | import lombok.AllArgsConstructor;
|
@@ -113,8 +118,19 @@ private PublicKeyCredential(
|
113 | 118 |
|
114 | 119 | /**
|
115 | 120 | * The <a href="https://w3c.github.io/webauthn/#authenticator-attachment-modality">authenticator
|
116 |
| - * attachment modality</a> in effect at the time the credential was used. |
| 121 | + * attachment modality</a> in effect at the time the credential was created or used. |
117 | 122 | *
|
| 123 | + * <p>If parsed from JSON, this will be present if and only if the input was a valid value of |
| 124 | + * {@link AuthenticatorAttachment}. |
| 125 | + * |
| 126 | + * <p>The same value will also be available via {@link |
| 127 | + * RegistrationResult#getAuthenticatorAttachment()} or {@link |
| 128 | + * AssertionResult#getAuthenticatorAttachment()} on the result from {@link |
| 129 | + * RelyingParty#finishRegistration(FinishRegistrationOptions)} or {@link |
| 130 | + * RelyingParty#finishAssertion(FinishAssertionOptions)}. |
| 131 | + * |
| 132 | + * @see RegistrationResult#getAuthenticatorAttachment() |
| 133 | + * @see AssertionResult#getAuthenticatorAttachment() |
118 | 134 | * @deprecated EXPERIMENTAL: This feature is from a not yet mature standard; it could change as
|
119 | 135 | * the standard matures.
|
120 | 136 | */
|
|
0 commit comments