iTextSharp.text.pdf.security.CertificateVerification.VerifyTimestampCertificates C# (CSharp) Метод

VerifyTimestampCertificates() публичный статический Метод

public static VerifyTimestampCertificates ( TimeStampToken ts, ICollection keystore ) : bool
ts Org.BouncyCastle.Tsp.TimeStampToken
keystore ICollection
Результат bool
        public static bool VerifyTimestampCertificates(TimeStampToken ts, ICollection<X509Certificate> keystore)
        {
            try {
                foreach (X509Certificate certStoreX509 in keystore) {
                    try {
                        ts.Validate(certStoreX509);
                        return true;
                    }
                    catch {
                    }
                }
            }
            catch {
            }
            return false;
        }