using System.Runtime.Serialization;

namespace IWS5.Core.Models.Configuration
{
    [DataContract]
    public class CASettings
    {
        [DataMember]
        public string[] issuerCNs { get; set; }
        [DataMember]
        public string address { get; set; }
        [DataMember]
        public string ocspAccessPointAddress { get; set; }
        [DataMember]
        public string ocspAccessPointPort { get; set; }
        [DataMember]
        public string cmpAddress { get; set; }
        [DataMember]
        public string tspAddress { get; set; }
        [DataMember]
        public string tspAddressPort { get; set; }
        [DataMember]
        public bool directAccess { get; set; }
        [DataMember]
        public int cmpCompatibility { get; set; }

        public CASettings(string[] issuerCNs, string address,
            string ocspAccessPointAddress, string ocspAccessPointPort,
            string cmpAddress, string tspAddress, string tspAddressPort,
            bool directAccess, int cmpCompatibility)
        {
            this.issuerCNs = issuerCNs;
            this.address = address;
            this.ocspAccessPointAddress = ocspAccessPointAddress;
            this.ocspAccessPointPort = ocspAccessPointPort;
            this.cmpAddress = cmpAddress;
            this.tspAddress = tspAddress;
            this.tspAddressPort = tspAddressPort;
            this.directAccess = directAccess;
            this.cmpCompatibility = cmpCompatibility;
        }
    }
}
