Esempio n. 1
0
        /// <summary>
        /// Create a Validator with the policy and fetcher.
        /// </summary>
        ///
        /// <param name="policy">The validation policy to be associated with this validator.</param>
        /// <param name="certificateFetcher">The certificate fetcher implementation.</param>
        public Validator(ValidationPolicy policy,
                         CertificateFetcher certificateFetcher)
        {
            policy_             = policy;
            certificateFetcher_ = certificateFetcher;
            maxDepth_           = 25;

            if (policy_ == null)
            {
                throw new ArgumentException("The policy is null");
            }
            if (certificateFetcher_ == null)
            {
                throw new ArgumentException("The certificateFetcher is null");
            }

            policy_.setValidator(this);
            certificateFetcher_.setCertificateStorage(this);
        }
Esempio n. 2
0
 public Anonymous_C0(CertificateFetcher paramouter_CertificateFetcher,
                     CertificateFetcher.ValidationContinuation outerContinueValidation_0)
 {
     this.outerContinueValidation  = outerContinueValidation_0;
     this.outer_CertificateFetcher = paramouter_CertificateFetcher;
 }