using System;

namespace QC.QTMSecurity;

[Serializable]
internal class SecurityConfiguration
{
	private SecurityMode securityMode;

	private string password;

	private bool disableAll;

	internal SecurityMode SecurityMode
	{
		get
		{
			return securityMode;
		}
		set
		{
			securityMode = value;
		}
	}

	internal string Password
	{
		get
		{
			try
			{
				PasswordEncryptor passwordEncryptor = new PasswordEncryptor();
				return passwordEncryptor.Decrypt(password);
			}
			catch
			{
			}
			return null;
		}
		set
		{
			try
			{
				PasswordEncryptor passwordEncryptor = new PasswordEncryptor();
				password = passwordEncryptor.Encrypt(value);
			}
			catch
			{
			}
		}
	}

	internal bool DisableAll
	{
		get
		{
			return disableAll;
		}
		set
		{
			disableAll = value;
		}
	}
}
