if ( (revinfo != null) && (revinfo.getReason() != RevokedCertInfo.NOT_REVOKED) ) { revokedinfo = new RevokedInfoView(revinfo); }
if(revinfo != null) revokedinfo = new RevokedInfoView(revinfo);
    public void loadCertificates(String username) throws Exception{      Collection certs = certificatesession.findCertificatesByUsername(administrator, username);      UserAdminData user = adminsession.findUser(administrator, username);      if(!certs.isEmpty()){        Iterator j = certs.iterator();        certificates = new CertificateView[certs.size()];        for(int i=0; i< certificates.length; i++){          RevokedInfoView revokedinfo = null;          X509Certificate cert = (X509Certificate) j.next();          RevokedCertInfo revinfo = certificatesession.isRevoked(administrator, CertTools.getIssuerDN(cert), cert.getSerialNumber());          if ( (revinfo != null) && (revinfo.getReason() != RevokedCertInfo.NOT_REVOKED) ) {              revokedinfo = new RevokedInfoView(revinfo);          }           certificates[i] = new CertificateView(cert, revokedinfo, username);        }      }      else{        certificates = null;      }    }