forked from gluck/CefSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathISslInfo.cs
51 lines (43 loc) · 1.63 KB
/
ISslInfo.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright © 2010-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;
namespace CefSharp
{
public interface ISslInfo
{
/// <summary>
/// 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.
/// </summary>
//ISslCertPrincipal Subject { get; }
/// <summary>
/// Returns the issuer of the X.509 certificate.
/// </summary>
//ISslCertPrincipal Issuer { get; }
/// <summary>
/// Returns the DER encoded serial number for the X.509 certificate. The value
/// possibly includes a leading 00 byte.
/// </summary>
byte[] SerialNumber { get; }
/// <summary>
/// Returns the date before which the X.509 certificate is invalid.
/// will return null if no date was specified.
/// </summary>
DateTime? ValidStart { get; }
/// <summary>
/// Returns the date after which the X.509 certificate is invalid.
/// will return null if no date was specified.
/// </summary>
DateTime? ValidExpiry { get; }
/// <summary>
/// Returns the DER encoded data for the X.509 certificate.
/// </summary>
byte[] DerEncoded { get; }
/// <summary>
/// Returns the PEM encoded data for the X.509 certificate.
/// </summary>
byte[] PemEncoded { get; }
}
}