Show / Hide Table of Contents

AuthenticationData Class

Namespace: Yubico.YubiKey.U2f Assembly: Yubico.YubiKey.dll

Represents a single U2F authentication response.

C#
public class AuthenticationData : U2fSignedData
Inheritance object U2fBuffer U2fSignedData AuthenticationData

Remarks

This class is used to see what the was returned by the YubiKey in an authentication operation, as well as a method to verify the signature.

Constructors

Name Description
AuthenticationData(ReadOnlyMemory<byte>)

Build a new AuthenticationData object from the encoded response, which is the data portion of the value returned by the YubiKey.

Properties

Name Description
Counter

The counter used in computing the signature.

UserPresenceVerified

If the user's presence was verified in the authentication operation, this will be true. Otherwise it will be false.

Methods

Name Description
VerifySignature(ReadOnlyMemory<byte>, ReadOnlyMemory<byte>, ReadOnlyMemory<byte>)

Use the given public key to verify the signature. Use the given Application ID (hash of origin data) and Client Data Hash (includes the challenge) to build the data to verify.

In this article
Back to top Generated by DocFX