using System.Security.Cryptography.X509Certificates;
using TSManagementApp.Properties;

namespace TSManagementApp.Models
{
    public class TsaSettingsModel
    {
        public TsaSettingsModel()
        {
            NoAuthIsChecked = true;
            AuthCertIsChecked = false;
            AuthIpIsChecked = false;
            AuthLoginDataIsChecked = false;
            AuthCert = null;
            LoginName = null;
            LoginPassword = null;
            Politics = null;
            MessageImprintType = Resources.ShaAlgorithmDescription_Sha256;
            SelectedTimeStampServer = null;
        }

        #region Properties

        public bool AuthCertIsChecked { get; set; }
        public bool AuthIpIsChecked { get; set; }
        public bool AuthLoginDataIsChecked { get; set; }
        public X509Certificate2 AuthCert { get; set; }
        public string LoginName { get; set; }
        public string LoginPassword { get; set; }
        public string Politics { get; set; }
        public string MessageImprintType { get; set; }
        public string SelectedTimeStampServer { get; set; }

        public bool NoAuthIsChecked { get; set; }

        #endregion
    }
}
