EncodedAttestationStatement Property
EncodedAttestationStatement
The encoded CBOR map that describes the attestation statement.
public ReadOnlyMemory<byte> EncodedAttestationStatement { get; }
Property Value
Type | Description |
---|---|
System.ReadOnlyMemory<System.Byte> |
Remarks
The other members of this class make it easy to access the individual elements of the attestation statement and supporting structures. This property returns the raw, CBOR encoded attestation statement returned by the YubiKey. This is useful if you are implementing or interoperating with the WebAuthn data types. It is often easier to copy this field over in its encoded form rather than using the parsed properties.
For example: the WebAuthn MakeCredential operation expects an "attestation object" be returned. This is a CBOR map containing the "format", "attStmt", and "authData" - the keys given in string form. The "authData" is the CBOR encoded AuthenticatorData further encoded in Base64URL. The "attStmt" is the CBOR map that contains the AttestationAlgorithm, AttestationStatement, and AttestationCertificates.
Rather than reconstructing the CBOR map, we provide it here for you, already in encoded form.