private void populateCertIssuerNames(){
  if (certificates == null)   return;
  certIssuerNames=new Principal[certificates.length];
  for (int i=0; i < certificates.length; i++) {
    X509Certificate cert=certificates[i];
    Principal certIssuerName=cert.getIssuerDN();
    if (!(certIssuerName instanceof X500Name)) {
      try {
        X509CertInfo tbsCert=new X509CertInfo(cert.getTBSCertificate());
        certIssuerName=(Principal)tbsCert.get(X509CertInfo.ISSUER + "." + X509CertInfo.DN_NAME);
      }
 catch (      Exception e) {
      }
    }
    certIssuerNames[i]=certIssuerName;
  }
}

private void populateCertIssuerNames ( ) { if ( certificates == null ) return ; certIssuerNames = new Principal [ certificates . length ] ; for ( int i = 0 ; i < certificates . length ; i ++ ) { X509Certificate cert = certificates [ i ] ; Principal certIssuerName = cert . getIssuerDN ( ) ; if ( ! ( certIssuerName instanceof X500Name ) ) { try { X509CertInfo tbsCert = new X509CertInfo ( cert . getTBSCertificate ( ) ) ; certIssuerName = ( Principal ) tbsCert . get ( X509CertInfo . ISSUER + "." + X509CertInfo . DN_NAME ) ; } catch ( Exception e ) { } } certIssuerNames [ i ] = certIssuerName ; } }
populate array of issuer dns from certificates and convert each principal to type x500name if necessary .
