Crescendo SDK
Loading...
Searching...
No Matches
CrescendoDLL.PCSC.FIDODataStructures.AuthenticatorData Class Reference

Authenticator Data structure as described in the [WebAuthn] (https://www.w3.org/TR/webauthn-2/#authenticator-data) specification. More...

Public Member Functions

 AuthenticatorData (byte[] authData)
 Parses the AuthData byte array received from the MakeCredentialResponse to a data-structure described in the WebAuthn specification.
 
byte[] ToByteArray ()
 Converts the Authenticator Data structure to a byte array.
 

Properties

AttestedCredentialDataAttestedCredentialData [get, set]
 Attested credential data (variable length, only present if AT flag is set)
 
byte?[] Extensions [get, set]
 Extensions (variable length, CBOR-encoded, only present if ED flag is set)
 
AuthenticatorDataFlags Flags [get, set]
 Flags indicating various states (1 byte)
 
byte[] RpIdHash = default! [get, set]
 SHA-256 hash of the RP ID the credential is scoped to (32 bytes)
 
uint SignatureCounter [get, set]
 Signature counter (4 bytes, big-endian)
 

Detailed Description

Authenticator Data structure as described in the [WebAuthn] (https://www.w3.org/TR/webauthn-2/#authenticator-data) specification.

Constructor & Destructor Documentation

◆ AuthenticatorData()

CrescendoDLL.PCSC.FIDODataStructures.AuthenticatorData.AuthenticatorData ( byte[]  authData)
inline

Parses the AuthData byte array received from the MakeCredentialResponse to a data-structure described in the WebAuthn specification.

Parameters
authDataAuthData byte array received from the Authenticator.
Exceptions
ArgumentExceptionThrown if the authData is shorter than 37 bytes.

Member Function Documentation

◆ ToByteArray()

byte[] CrescendoDLL.PCSC.FIDODataStructures.AuthenticatorData.ToByteArray ( )
inline

Converts the Authenticator Data structure to a byte array.

Returns
The Authenticator Data as a byte array.

Property Documentation

◆ AttestedCredentialData

AttestedCredentialData? CrescendoDLL.PCSC.FIDODataStructures.AuthenticatorData.AttestedCredentialData
getset

Attested credential data (variable length, only present if AT flag is set)

◆ Extensions

byte? [] CrescendoDLL.PCSC.FIDODataStructures.AuthenticatorData.Extensions
getset

Extensions (variable length, CBOR-encoded, only present if ED flag is set)

◆ Flags

AuthenticatorDataFlags CrescendoDLL.PCSC.FIDODataStructures.AuthenticatorData.Flags
getset

Flags indicating various states (1 byte)

◆ RpIdHash

byte [] CrescendoDLL.PCSC.FIDODataStructures.AuthenticatorData.RpIdHash = default!
getset

SHA-256 hash of the RP ID the credential is scoped to (32 bytes)

◆ SignatureCounter

uint CrescendoDLL.PCSC.FIDODataStructures.AuthenticatorData.SignatureCounter
getset

Signature counter (4 bytes, big-endian)