RegistrationData Class
Namespace: Yubico.YubiKey.U2f Assembly: Yubico.YubiKey.dllRepresents a single U2F registration.
public class RegistrationData : U2fSignedData
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 |
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. |