// Copyright © 2020 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. namespace CefSharp.DevTools.WebAuthn { /// /// VirtualAuthenticatorOptions /// [System.Runtime.Serialization.DataContractAttribute] public class VirtualAuthenticatorOptions : CefSharp.DevTools.DevToolsDomainEntityBase { /// /// Protocol /// public CefSharp.DevTools.WebAuthn.AuthenticatorProtocol Protocol { get { return (CefSharp.DevTools.WebAuthn.AuthenticatorProtocol)(StringToEnum(typeof(CefSharp.DevTools.WebAuthn.AuthenticatorProtocol), protocol)); } set { protocol = (EnumToString(value)); } } /// /// Protocol /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("protocol"), IsRequired = (true))] internal string protocol { get; set; } /// /// Transport /// public CefSharp.DevTools.WebAuthn.AuthenticatorTransport Transport { get { return (CefSharp.DevTools.WebAuthn.AuthenticatorTransport)(StringToEnum(typeof(CefSharp.DevTools.WebAuthn.AuthenticatorTransport), transport)); } set { transport = (EnumToString(value)); } } /// /// Transport /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("transport"), IsRequired = (true))] internal string transport { get; set; } /// /// Defaults to false. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasResidentKey"), IsRequired = (false))] public bool? HasResidentKey { get; set; } /// /// Defaults to false. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("hasUserVerification"), IsRequired = (false))] public bool? HasUserVerification { get; set; } /// /// If set to true, tests of user presence will succeed immediately. /// Otherwise, they will not be resolved. Defaults to true. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("automaticPresenceSimulation"), IsRequired = (false))] public bool? AutomaticPresenceSimulation { get; set; } /// /// Sets whether User Verification succeeds or fails for an authenticator. /// Defaults to false. /// [System.Runtime.Serialization.DataMemberAttribute(Name = ("isUserVerified"), IsRequired = (false))] public bool? IsUserVerified { get; set; } } }