authorizedToCA(admin,cadata.getCAId().intValue());
authorizedToCA(admin,cadata.getCaId().intValue());
    public CAInfo getCAInfo(Admin admin, String name) {        CAInfo cainfo = null;        try{            CADataLocal cadata = cadatahome.findByName(name);			if(cadata.getStatus() == SecConst.CA_ACTIVE && new Date(cadata.getExpireTime()).before(new Date())){			  cadata.setStatus(SecConst.CA_EXPIRED);			}            authorizedToCA(admin,cadata.getCAId().intValue());            try{            	cadata.getCA().getCAToken().getPublicKey(SecConst.CAKEYPURPOSE_CERTSIGN);            }catch(CATokenOfflineException ctoe){            	cadata.setStatus(SecConst.CA_OFFLINE);            }            cainfo = cadata.getCA().getCAInfo();        }catch(javax.ejb.FinderException fe) {}         catch(Exception e){           throw new EJBException(e);         }        return cainfo;    } // getCAInfo