Skip to content

Commit

Permalink
Recommend RegistrationResult.getPublicKeyCose() as argument to Regist…
Browse files Browse the repository at this point in the history
…eredCredential
  • Loading branch information
emlun committed Nov 4, 2021
1 parent a692324 commit 945fed5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ public class Step3 {
* {@link RegisteredCredentialBuilder#publicKeyCose(ByteArray) publicKeyCose} is a required
* parameter.
*
* <p>The return value of {@link RegistrationResult#getPublicKeyCose()} is a suitable
* argument for this method.
*
* <p>Alternatively, the public key can be specified using the {@link
* #publicKeyEs256Raw(ByteArray)} method if the key is stored in the U2F format (<code>
* ALG_KEY_ECC_X962_RAW</code> as specified in <a
Expand Down Expand Up @@ -187,6 +190,9 @@ public RegisteredCredentialBuilder publicKeyEs256Raw(ByteArray publicKeyEs256Raw
* href="https://tools.ietf.org/html/rfc8152">RFC 8152</a>. This method overwrites {@link
* #publicKeyEs256Raw(ByteArray)}.
*
* <p>The return value of {@link RegistrationResult#getPublicKeyCose()} is a suitable argument
* for this method.
*
* <p>This is used to verify the {@link AuthenticatorAssertionResponse#getSignature() signature}
* in authentication assertions.
*
Expand Down

0 comments on commit 945fed5

Please sign in to comment.