mirror of https://gitee.com/apiumc/Gateway.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
957 B
C#
41 lines
957 B
C#
using System.Collections.Concurrent;
|
|
using System.Collections.Generic;
|
|
using System.Security.Cryptography.X509Certificates;
|
|
|
|
namespace UMC.ITME
|
|
{
|
|
public class Certificater
|
|
{
|
|
static ConcurrentDictionary<string, int> _Hosts = new ConcurrentDictionary<string, int>();
|
|
|
|
public static ConcurrentDictionary<string, int> UnCertificatesHosts
|
|
{
|
|
get
|
|
{
|
|
return _Hosts;
|
|
}
|
|
}
|
|
public static Dictionary<string, Certificater> Certificates
|
|
{
|
|
get
|
|
{
|
|
return _certificates;
|
|
}
|
|
}
|
|
static Dictionary<string, Certificater> _certificates = new Dictionary<string, Certificater>();
|
|
|
|
public string Name
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public X509Certificate2 Certificate
|
|
{
|
|
get; set;
|
|
}
|
|
public int Time
|
|
{
|
|
get; set;
|
|
}
|
|
}
|
|
} |