コード例 #1
0
        private RetriableCertificateValidator()
        {
            X509ChainPolicy x509ChainPolicy = new X509ChainPolicy()
            {
                RevocationMode = X509RevocationMode.Online
            };

            this.peerOrChainTrustOnline = X509CertificateValidator.CreatePeerOrChainTrustValidator(true, x509ChainPolicy);
            X509ChainPolicy x509ChainPolicy1 = new X509ChainPolicy()
            {
                RevocationMode = X509RevocationMode.NoCheck
            };

            this.peerOrChainTrustNoCheck = X509CertificateValidator.CreatePeerOrChainTrustValidator(true, x509ChainPolicy1);
            X509ChainPolicy x509ChainPolicy2 = new X509ChainPolicy()
            {
                RevocationMode = X509RevocationMode.Offline
            };

            this.peerOrChainTrustOffline = X509CertificateValidator.CreatePeerOrChainTrustValidator(true, x509ChainPolicy2);
            this.revocationMode          = ConfigurationHelpers.GetCertificateRevocationMode();
        }