Пример #1
0
 /// <summary>
 /// Trusts the given certificate, using the given policy for validation.
 /// </summary>
 /// <param name="certificate">The certificate to be trusted.</param>
 /// <param name="policy">The policy by which to evaluate the certificate.</param>
 public void Trust(X509Certificate certificate, CertificatePolicy policy)
 {
     m_trustedCertificates[certificate] = policy;
 }
Пример #2
0
 /// <summary>
 /// Creates a new instance of the <see cref="CertificatePolicyChecker"/> class.
 /// </summary>
 public CertificatePolicyChecker()
 {
     m_trustedCertificates    = new Dictionary <X509Certificate, CertificatePolicy>();
     DefaultCertificatePolicy = new CertificatePolicy();
 }