Show / Hide Table of Contents

RegistrationData Class

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

Represents a single U2F registration.

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

Remarks

This represents the registration data returned by the YubiKey when registering a new U2F credential. The information stored in this structure can be sent back to the relying party to store for future validation (authentication) attempts.

This class is useful for storing registration data, in scenarios like U2F preregistration.

Constructors

Name Description
RegistrationData(ReadOnlyMemory<byte>)

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

Properties

Name Description
AttestationCert

The Attestation cert used to verify a newly-registered credential.

KeyHandle

The private key handle created by the YubiKey. Save this value and use it when authenticating.

UserPublicKey

The ECDSA public key for this user credential. Each coordinate must be 32 bytes and the point must be on the P256 curve.

Methods

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

Verify the signature using the public key in the attestation cert returned by the YubiKey in the registration command/response. Use the given Client Data Hash and Application ID to build the data to verify.

In this article
Back to top Generated by DocFX