public X509TrustChainKeySelector(X509Certificate... trustedRoots){
  _log=LoggerFactory.getLogger(X509TrustChainKeySelector.class);
  checkCtorArgsNotNull(trustedRoots);
  _trustAnchors=new HashSet<TrustAnchor>();
  for (  X509Certificate cert : trustedRoots) {
    _trustAnchors.add(new TrustAnchor(cert,null));
  }
}

public X509TrustChainKeySelector ( X509Certificate ... trustedRoots ) { _log = LoggerFactory . getLogger ( X509TrustChainKeySelector . class ) ; checkCtorArgsNotNull ( trustedRoots ) ; _trustAnchors = new HashSet < TrustAnchor > ( ) ; for ( X509Certificate cert : trustedRoots ) { _trustAnchors . add ( new TrustAnchor ( cert , null ) ) ; } }
create an x509trustchainkeyselector instance which will accept a chain rooted at any of the provided certificates .
