/// <summary> /// Constructs the SSLAnalyzer using a parsed list of HostEntries and a connected API service object. /// </summary> public SSLAnalyzer(List<HostEntry> entries, SSLLabsApiService service) { _service = service; _entries = entries; _estRuntime = 120; _waitInterval = 3; _analyzedEntries = new List<HostEntry>(); }
public Details() { key = new Key(); cert = new Cert(); chain = new Chain(); protocols = new List<Protocol>(); suites = new Suites(); sims = new Sims(); }
/// <summary> /// Will construct a new HostEntry object. /// </summary> /// <param name="url">The URL of the host.</param> /// <param name="protocol">The URL protocol of the host.</param> /// <param name="fillEmpty">True if attributes such as IP should be filled /// with empty strings.</param> public HostEntry(string url, string protocol) { if (protocol == null) protocol = "https"; _protocol = new HostEntryAttribute(HostEntryAttribute.Type.Protocol, protocol); _URL = new HostEntryAttribute(HostEntryAttribute.Type.URL, url); _customAttributes = new List<HostEntryAttribute>(); _differences = new List<AnalyzeDifference>(); _assessmentFailedMessage = "Assessment failed"; }
public Sims() { results = new List<Result>(); }
public Suites() { list = new List<List>(); }
public Chain() { certs = new List<Cert2>(); }
public void AddCustomAttribute(List<HostEntryAttribute> range) { _customAttributes.AddRange(range); }
/// <summary> /// Will set the TLS versions for this host entry. /// </summary> /// <param name="value"></param> public void SetProtocolVersions(List<Protocol> protocols) { if (protocols == null) return; string str = DataFormatter.Static.ProtocolVersionsToString(protocols); _protocolVersions = new HostEntryAttribute(HostEntryAttribute.Type.ProtocolVersions, str); }