Skip to content

Commit 945fed5

Browse files
committed
Recommend RegistrationResult.getPublicKeyCose() as argument to RegisteredCredential
1 parent a692324 commit 945fed5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

webauthn-server-core/src/main/java/com/yubico/webauthn/RegisteredCredential.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ public class Step3 {
144144
* {@link RegisteredCredentialBuilder#publicKeyCose(ByteArray) publicKeyCose} is a required
145145
* parameter.
146146
*
147+
* <p>The return value of {@link RegistrationResult#getPublicKeyCose()} is a suitable
148+
* argument for this method.
149+
*
147150
* <p>Alternatively, the public key can be specified using the {@link
148151
* #publicKeyEs256Raw(ByteArray)} method if the key is stored in the U2F format (<code>
149152
* ALG_KEY_ECC_X962_RAW</code> as specified in <a
@@ -187,6 +190,9 @@ public RegisteredCredentialBuilder publicKeyEs256Raw(ByteArray publicKeyEs256Raw
187190
* href="https://tools.ietf.org/html/rfc8152">RFC 8152</a>. This method overwrites {@link
188191
* #publicKeyEs256Raw(ByteArray)}.
189192
*
193+
* <p>The return value of {@link RegistrationResult#getPublicKeyCose()} is a suitable argument
194+
* for this method.
195+
*
190196
* <p>This is used to verify the {@link AuthenticatorAssertionResponse#getSignature() signature}
191197
* in authentication assertions.
192198
*

0 commit comments

Comments
 (0)