Files
cefsharp/CefSharp/SslStatus.cs
T
Chris bef5dd37c4 Maintenance - Fixed formatting, file encoding, and copyright year (#2504)
* Applied formatting

* Fixed file encoding + Updated copyright year

* Updated License

* Fixed more file encoding

* Copyright notice now shows the year the file was created
2018-09-10 10:41:13 +10:00

60 lines
2.1 KiB
C#

// 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
{
/// <summary>
/// Class representing the SSL information for a navigation entry.
/// </summary>
public sealed class SslStatus
{
/// <summary>
/// Returns true if the status is related to a secure SSL/TLS connection.
/// </summary>
public bool IsSecureConnection { get; private set; }
/// <summary>
/// Returns a bitmask containing any and all problems verifying the server
/// certificate.
/// </summary>
/// <returns></returns>
public CertStatus CertStatus { get; private set; }
/// <summary>
/// Returns the SSL version used for the SSL connection.
/// </summary>
/// <returns></returns>
public SslVersion SslVersion { get; private set; }
/// <summary>
/// Returns a bitmask containing the page security content status.
/// </summary>
public SslContentStatus ContentStatus { get; private set; }
/// <summary>
/// Returns the X.509 certificate.
/// </summary>
public X509Certificate2 X509Certificate { get; private set; }
/// <summary>
/// SslStatus
/// </summary>
/// <param name="isSecureConnection">is secure</param>
/// <param name="certStatus">cert status</param>
/// <param name="sslVersion">ssl version</param>
/// <param name="contentStatus">content status</param>
/// <param name="certificate">certificate</param>
public SslStatus(bool isSecureConnection, CertStatus certStatus, SslVersion sslVersion, SslContentStatus contentStatus, X509Certificate2 certificate)
{
IsSecureConnection = isSecureConnection;
CertStatus = certStatus;
SslVersion = sslVersion;
ContentStatus = contentStatus;
X509Certificate = certificate;
}
}
}