cainfodata[CRLPERIOD] = Integer.toString(((X509CAInfo) cainfo).getCRLPeriod());  cainfodata[CRLPUBLISHERS] = ""; Iterator iter = ((X509CAInfo) cainfo).getCRLPublishers().iterator(); if(iter.hasNext()) cainfodata[CRLPUBLISHERS] = (String) publishersidtonamemap.get(iter.next()); else cainfodata[CRLPUBLISHERS] = ejbcawebbean.getText("NONE");  while(iter.hasNext()) cainfodata[CRLPUBLISHERS] = cainfodata[CRLPUBLISHERS] + ", " + (String) publishersidtonamemap.get(iter.next());
    public CAInfoView(CAInfo cainfo, EjbcaWebBean ejbcawebbean){      this.cainfo = cainfo;                if(cainfo instanceof X509CAInfo){        cainfodatatexts = new String[X509CA_CAINFODATATEXTS.length];        cainfodata = new String[X509CA_CAINFODATATEXTS.length];                  for(int i=0; i < X509CA_CAINFODATATEXTS.length; i++){          if(X509CA_CAINFODATATEXTS[i].equals(""))              cainfodatatexts[i]="&nbsp;";          else              cainfodatatexts[i] = ejbcawebbean.getText(X509CA_CAINFODATATEXTS[i]);        }                cainfodata[SUBJECTDN]  = cainfo.getSubjectDN();        cainfodata[SUBJECTALTNAME] = ((X509CAInfo) cainfo).getSubjectAltName();        cainfodata[NAME]       = cainfo.getName();        cainfodata[CATYPE]     = ejbcawebbean.getText("X509");        cainfodata[4]          = "&nbsp;"; // blank line        cainfodata[EXPIRETIME] = ejbcawebbean.printDateTime(cainfo.getExpireTime());                switch(cainfo.getStatus()){            case SecConst.CA_ACTIVE :              cainfodata[STATUS]     = ejbcawebbean.getText("ACTIVE");                   break;            case SecConst.CA_EXPIRED :              cainfodata[STATUS]     = ejbcawebbean.getText("EXPIRED");              break;            case SecConst.CA_INACTIVE :              cainfodata[STATUS]     = ejbcawebbean.getText("INACTIVE");              break;            case SecConst.CA_REVOKED :              cainfodata[STATUS]     = ejbcawebbean.getText("CAREVOKED") + ", " +                                        ejbcawebbean.getText("REASON") + " :<br>&nbsp;&nbsp;" +                                       ejbcawebbean.getText(RevokedInfoView.reasontexts[cainfo.getRevokationReason()]);              break;            case SecConst.CA_WAITING_CERTIFICATE_RESPONSE :              cainfodata[STATUS]     = ejbcawebbean.getText("WAITINGFORCERTRESPONSE");              break;                      }                        cainfodata[DESCRIPTION] = cainfo.getDescription();              }   }