int certtype = SecConst.CERTTYPE_SUBCA;
int certtype = CertificateDataBean.CERTTYPE_SUBCA;
 public void publishCA(int caid){ 	CAInfo cainfo = caadminsession.getCAInfo(administrator, caid); 	CertificateProfile certprofile = certificatesession.getCertificateProfile(administrator, cainfo.getCertificateProfileId()); 	int certtype = SecConst.CERTTYPE_SUBCA; 	if(cainfo.getSignedBy() == CAInfo.SELFSIGNED) 	  certtype = SecConst.CERTTYPE_ROOTCA; 	signsession.publishCACertificate(administrator, cainfo.getCertificateChain(), certprofile.getPublisherList() , certtype); }