private void validate(Artifact a) throws CadiException { StringBuilder sb = new StringBuilder(); if(a.getDir()==null) { sb.append("File Artifacts require a path"); } if(a.getAppName()==null) { if(sb.length()>0) { sb.append('\n'); } sb.append("File Artifacts require an AAF Namespace"); } if(sb.length()>0) { throw new CadiException(sb.toString()); } }
private void validate(Artifact a) throws CadiException { StringBuilder sb = new StringBuilder(); if(a.getDir()==null) { sb.append("File Artifacts require a path"); } if(a.getAppName()==null) { if(sb.length()>0) { sb.append('\n'); } sb.append("File Artifacts require an AAF Namespace"); } if(sb.length()>0) { throw new CadiException(sb.toString()); } }
"# Check on Certificate, and renew if needed.\n", "# Generated by Certificate Manager " + Chrono.timeStamp()+'\n', "DIR="+arti.getDir()+'\n', "APP="+arti.getAppName()+'\n', "EMAIL="+email, "# Generated by Certificate Manager " + Chrono.timeStamp()+'\n', "TFILE=\"/tmp/cmcron$$.temp\"\n", "DIR=\""+arti.getDir()+"\"\n", "CF=\""+arti.getAppName()+" Certificate Check Script\"\n", "SCRIPT=\""+f1.getCanonicalPath()+"\"\n",
for(Artifact a : acf.value.getArtifact()) { if(id.equals(a.getMechid())) { File dir = new File(a.getDir()); Properties props = new Properties(); FileInputStream fis = new FileInputStream(new File(dir,a.getAppName()+".props")); FileOutputStream fos = new FileOutputStream(a.getDir()+'/'+a.getAppName()+".msg"); try { fos.write(msg.getBytes());
for(Artifact a : acf.value.getArtifact()) { if(id.equals(a.getMechid())) { File dir = new File(a.getDir()); Properties props = new Properties(); FileInputStream fis = new FileInputStream(new File(dir,a.getAppName()+".props")); FileOutputStream fos = new FileOutputStream(a.getDir()+'/'+a.getAppName()+".msg"); try { fos.write(msg.getBytes());
File dir = new File(a.getDir()); Properties props = new Properties(); FileInputStream fis = new FileInputStream(new File(dir,a.getAppName()+".props"));
File dir = new File(a.getDir()); Properties props = new Properties(); FileInputStream fis = new FileInputStream(new File(dir,a.getAppName()+".props"));
arti.setDir(AAFSSO.cons.readLine("Directory (%s): ", a.getDir())); arti.setOsUser(AAFSSO.cons.readLine("OS User (%s): ", a.getOsUser())); arti.setRenewDays(Integer.parseInt(AAFSSO.cons.readLine("Renew Days (%s):", a.getRenewDays())));
arti.setDir(AAFSSO.cons.readLine("Directory (%s): ", a.getDir())); arti.setOsUser(AAFSSO.cons.readLine("OS User (%s): ", a.getOsUser())); arti.setRenewDays(Integer.parseInt(AAFSSO.cons.readLine("Renew Days (%s):", a.getRenewDays())));
addProperty(Config.CADI_KEYFILE,arti.getDir()+'/'+arti.getAppName() + ".keyfile");
addProperty(Config.CADI_KEYFILE,arti.getDir()+'/'+arti.getAppName() + ".keyfile");
dir = new File(arti.getDir()); if(processed.get("dir")==null) { if(!dir.exists()) {
"# Check on Certificate, and renew if needed.\n", "# Generated by Certificate Manager " + Chrono.timeStamp()+'\n', "DIR="+arti.getDir()+'\n', "APP="+arti.getAppName()+'\n', "EMAIL="+email, "# Generated by Certificate Manager " + Chrono.timeStamp()+'\n', "TFILE=\"/tmp/cmcron$$.temp\"\n", "DIR=\""+arti.getDir()+"\"\n", "CF=\""+arti.getAppName()+" Certificate Check Script\"\n", "SCRIPT=\""+f1.getCanonicalPath()+"\"\n",
dir = new File(arti.getDir()); if(processed.get("dir")==null) { if(!dir.exists()) {
AAFSSO.cons.printf("Directory: %s\n",a.getDir()); AAFSSO.cons.printf("O/S User: %s\n",a.getOsUser()); AAFSSO.cons.printf("Renew Days: %d\n",a.getRenewDays());
AAFSSO.cons.printf("Directory: %s\n",a.getDir()); AAFSSO.cons.printf("O/S User: %s\n",a.getOsUser()); AAFSSO.cons.printf("Renew Days: %d\n",a.getRenewDays());