// Copyright © 2016 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System.Security.Cryptography.X509Certificates; namespace CefSharp { /// /// Class representing the SSL information for a navigation entry. /// public sealed class SslStatus { /// /// Returns true if the status is related to a secure SSL/TLS connection. /// public bool IsSecureConnection { get; private set; } /// /// Returns a bitmask containing any and all problems verifying the server certificate. /// If the certificate is valid then is returned. /// public CertStatus CertStatus { get; private set; } /// /// Returns the SSL version used for the SSL connection. /// /// public SslVersion SslVersion { get; private set; } /// /// Returns a bitmask containing the page security content status. /// public SslContentStatus ContentStatus { get; private set; } /// /// Returns the X.509 certificate. /// public X509Certificate2 X509Certificate { get; private set; } /// /// SslStatus /// /// is secure /// cert status /// ssl version /// content status /// certificate public SslStatus(bool isSecureConnection, CertStatus certStatus, SslVersion sslVersion, SslContentStatus contentStatus, X509Certificate2 certificate) { IsSecureConnection = isSecureConnection; CertStatus = certStatus; SslVersion = sslVersion; ContentStatus = contentStatus; X509Certificate = certificate; } } }