using Bit.Core.Models.View;
namespace Bit.Core.Utilities.Fido2
{
///
/// The result of asserting a credential.
///
/// See: https://www.w3.org/TR/webauthn-2/#publickeycredential
///
public class Fido2ClientAssertCredentialResult
{
///
/// Base64url encoding of the credential identifer.
///
public required string Id { get; set; }
///
/// The credential identifier.
///
public required byte[] RawId { get; set; }
///
/// The JSON-compatible serialization of client datapassed to the authenticator by the client in
/// order to generate this assertion.
///
public required byte[] ClientDataJSON { get; set; }
///
/// The hash of the serialized client data used to generate the assertion.
///
public required byte[] ClientDataHash { get; set; }
///
/// The authenticator data returned by the authenticator.
///
public required byte[] AuthenticatorData { get; set; }
///
/// The raw signature returned from the authenticator.
///
public required byte[] Signature { get; set; }
///
/// The selected credential that was used to generate the assertion.
///
public Fido2SelectedCredential SelectedCredential { get; set; }
}
}