namespace Cef3 { using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.InteropServices; using Cef3.Interop; /// /// Class representing SSL information. /// public sealed unsafe partial class CefSslInfo { /// /// Returns the subject of the X.509 certificate. For HTTPS server /// certificates this represents the web server. The common name of the /// subject should match the host name of the web server. /// public CefSslCertPrincipal Subject { get { var n_result = cef_sslinfo_t.get_subject(_self); return CefSslCertPrincipal.FromNative(n_result); } } /// /// Returns the issuer of the X.509 certificate. /// public CefSslCertPrincipal Issuer { get { var n_result = cef_sslinfo_t.get_issuer(_self); return CefSslCertPrincipal.FromNative(n_result); } } /// /// Returns the DER encoded serial number for the X.509 certificate. The value /// possibly includes a leading 00 byte. /// public CefBinaryValue SerialNumber { get { var n_result = cef_sslinfo_t.get_serial_number(_self); return CefBinaryValue.FromNative(n_result); } } /// /// Returns the date before which the X.509 certificate is invalid. /// CefTime.GetTimeT() will return 0 if no date was specified. /// public DateTime ValidStart { get { var n_result = cef_sslinfo_t.get_valid_start(_self); return cef_time_t.ToDateTime(&n_result); } } /// /// Returns the date after which the X.509 certificate is invalid. /// CefTime.GetTimeT() will return 0 if no date was specified. /// public DateTime ValidExpiry { get { var n_result = cef_sslinfo_t.get_valid_expiry(_self); return cef_time_t.ToDateTime(&n_result); } } /// /// Returns the DER encoded data for the X.509 certificate. /// public CefBinaryValue DerEncoded { get { var n_result = cef_sslinfo_t.get_derencoded(_self); return CefBinaryValue.FromNative(n_result); } } /// /// Returns the PEM encoded data for the X.509 certificate. /// public CefBinaryValue PemEncoded { get { var n_result = cef_sslinfo_t.get_pemencoded(_self); return CefBinaryValue.FromNative(n_result); } } } }