AuthenticatorData Class
Namespace: Yubico.YubiKey.Fido2 Assembly: Yubico.YubiKey.dllContains information about the credential, assertion, or the authenticator itself after making a credential or getting an assertion.
public class AuthenticatorData : Object
Remarks
When a new credential is made, or a credential is used to get an assertion, the YubiKey returns data about that operation. When making a credential, this includes information about the authenticator itself, such as the aaguid.
The
authenticator data object
defined in the FIDO2 standard is encoded but not following the rules of CBOR or DER or any other standard encoding scheme. The encoding is defined in the W3C standard.
Constructors
Name | Description |
---|---|
AuthenticatorData(ReadOnlyMemory<Byte>) | Build a new instance of AuthenticatorData based on the given encoding. |
Properties
Name | Description |
---|---|
Aaguid | The authenticator's AAGUID. This is an optional value and can be null. |
CredentialId | The CredentialId. This is an optional value and can be null. |
CredentialPublicKey | The Credential's public key. This is an optional value and can be null. |
EncodedAuthenticatorData | The encoded authenticator data is used to verify the attestation statement (make credential) or assertion signature (get assertion). |
Extensions | The list of extensions. This is an optional value and can be null. |
RelyingPartyIdHash | The digest of the relying party ID. It is the SHA-256 digest of the
|
SignatureCounter | The count the authenticator returns. This should be an increasing
value for each time |
UserPresence | If |
UserVerification | If |
Methods
Name | Description |
---|---|
GetCredBlobExtension() | Get the value of the "credBlob" extension. This returns the decoded value. |
GetCredProtectExtension() | Get the value of the "credProtect" extension. This returns the decoded value. |
GetHmacSecretExtension(PinUvAuthProtocolBase) | Get the value of the "hmac-secret" extension. This returns the decoded and decrypted value or values. |
GetMinPinLengthExtension() | Get the value of the "minPinLength" extension. This returns the decoded value. |