}
public void addEnc(final String tag, Access orig, final String def) throws IOException {
- addEnc(tag,orig.getProperty(tag, def));
+ String pwd = orig.getProperty(tag, def);
+ if(pwd==null) {
+ return;
+ } else if(pwd.startsWith("enc:")) {
+ pwd = orig.decrypt(pwd, true);
+ }
+ addEnc(tag,pwd);
}
public void write() throws IOException {
pw.print('#');
}
pw.println();
- pw.println("# Properties Generated by AT&T Certificate Manager");
+ pw.println("# Properties Generated by AAF Certificate Manager");
pw.print("# by ");
pw.println(System.getProperty("user.name"));
pw.print("# on ");