using System;

namespace StorageSystem.Helpers
{
    public class EncryptionOptions
    {
        /// <summary>
        /// both server and client has a certificat for authentication. (certificat need to be installed on the computer)
        /// </summary>
        public bool UseMutualAuthentication
        {
            get; private set;
        } = false;


        /// <summary>
        /// The ComputerName (dns host name) where we connect to.
        /// </summary>
        public string TargetHost
        {
            get; private set;
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="EncryptionOptions"/> class.
        /// </summary>
        /// <param name="targetHost">The ComputerName (dns host name) where we connect to.</param>
        public EncryptionOptions(string targetHost)
        {
            TargetHost = targetHost;
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="EncryptionOptions"/> class.
        /// </summary>
        /// <param name="targetHost">The ComputerName (dns host name) where we connect to.</param>
        /// <param name="useMutualAuthentication">both server and client has a certificat for authentication. (certificat need to be installed on the computer).</param>
        public EncryptionOptions(string targetHost, bool useMutualAuthentication)
            : this(targetHost)
        {
            UseMutualAuthentication = useMutualAuthentication;
        }
    }
}
