VerifyAssertion Method
VerifyAssertion(CoseKey, ReadOnlyMemory<Byte>)
Use the given public key to verify the Signature. This
method will use the clientDataHash
and the
AuthenticatorData as the data to verify.
C#
public bool VerifyAssertion(CoseKey publicKey, ReadOnlyMemory<byte> clientDataHash)
Parameters
Type | Name | Description |
---|---|---|
CoseKey | publicKey | The public key returned when the credential was first made, it will be used to verify. |
System.ReadOnlyMemory<System.Byte> | clientDataHash | The client data hash used to get the assertion. |
Returns
System.Boolean
A boolean, true
if the signature verifies, false
otherwise.
Remarks
If the signature verifies, this method will return true
, and
if it does not verify, it will return false
. If there are any
errors, this method will throw an exception.