if ( (revinfo != null) && (revinfo.getReason() != RevokedCertInfo.NOT_REVOKED) ) { revokedinfo = new RevokedInfoView(revinfo); }
if(revinfo != null) revokedinfo = new RevokedInfoView(revinfo);
    public CertificateView[] getCACertificates(int caid) throws RemoteException, NamingException, CreateException {      CertificateView[] returnval = null;            InitialContext jndicontext = new InitialContext();      ISignSessionLocalHome home = (ISignSessionLocalHome)javax.rmi.PortableRemoteObject.narrow(jndicontext.lookup("java:comp/env/SignSessionLocal"), ISignSessionLocalHome.class );      ISignSessionLocal ss = home.create();      Collection chain = ss.getCertificateChain(administrator, caid);            returnval = new CertificateView[chain.size()];      Iterator iter = chain.iterator();      int i=0;      while(iter.hasNext()){        Certificate next = (Certificate) iter.next();          RevokedInfoView revokedinfo = null;        RevokedCertInfo revinfo = certificatesession.isRevoked(administrator, CertTools.getIssuerDN((X509Certificate) next), ((X509Certificate) next).getSerialNumber());        if ( (revinfo != null) && (revinfo.getReason() != RevokedCertInfo.NOT_REVOKED) ) {            revokedinfo = new RevokedInfoView(revinfo);        }        returnval[i] = new CertificateView((X509Certificate) next, revokedinfo,null);        i++;      }      return returnval;    }