trustedSel.setSubject(currentState.issuerDN);
}
boolean foundMatchingCert = false;
for (X509Certificate trustedCert : trustedCerts) {
if (trustedSel.match(trustedCert)) {
if (debug != null) {
debug.println("ForwardBuilder.getMatchingCACerts: "
+ "found matching trust anchor");
}
if (caCerts.add(trustedCert) && !searchAllCertStores) {