question: 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 ; } }
target:  Populate array of Issuer DNs from certificates and convert each Principal to type X500Name if necessary.