GetMatches(Org.BouncyCastle.X509.Store.IX509Selector selector) { foreach (Org.BouncyCastle.X509.X509Certificate certificate in certs) { if (selector == null || selector.Match(certificate)) { yield return(certificate); } } yield break; }
/// <summary> /// Gets a collection of matching X.509 certificates based on the specified selector. /// </summary> /// <remarks> /// Gets a collection of matching X.509 certificates based on the specified selector. /// </remarks> /// <returns>The matching certificates.</returns> /// <param name="selector">The match criteria.</param> System.Collections.ICollection Org.BouncyCastle.X509.Store.IX509Store.GetMatches( Org.BouncyCastle.X509.Store.IX509Selector selector) { System.Collections.Generic.List <Org.BouncyCastle.X509.X509Certificate> matches = new System.Collections.Generic.List <Org.BouncyCastle.X509.X509Certificate>(); foreach (Org.BouncyCastle.X509.X509Certificate certificate in GetMatches(selector)) { matches.Add(certificate); } return(matches); }