aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/at/gv/egiz/pdfas/api/commons/DynamicSignatureProfileImpl.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/api/commons/DynamicSignatureProfileImpl.java b/src/main/java/at/gv/egiz/pdfas/api/commons/DynamicSignatureProfileImpl.java
index c89b4fe..81e9005 100644
--- a/src/main/java/at/gv/egiz/pdfas/api/commons/DynamicSignatureProfileImpl.java
+++ b/src/main/java/at/gv/egiz/pdfas/api/commons/DynamicSignatureProfileImpl.java
@@ -5,6 +5,8 @@ import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
+import org.apache.commons.lang.StringUtils;
+
import at.gv.egiz.pdfas.api.PdfAs;
import at.knowcenter.wag.egov.egiz.cfg.PropertyTree;
import at.knowcenter.wag.egov.egiz.cfg.SettingsReader;
@@ -53,7 +55,7 @@ public class DynamicSignatureProfileImpl implements DynamicSignatureProfile {
if (lifeMode.equals(DynamicSignatureLifetimeEnum.MANUAL)) {
profiles.remove(this);
} else if (lifeMode.equals(DynamicSignatureLifetimeEnum.AUTO)) {
- localProfiles.remove();
+ localProfiles.set(null);
}
}
@@ -138,7 +140,7 @@ public class DynamicSignatureProfileImpl implements DynamicSignatureProfile {
for (Enumeration e = props.keys(); e.hasMoreElements();) {
String oldKey = (String) e.nextElement();
if (oldKey.startsWith("sig_obj." + parentProfile + ".")) {
- String newKey = oldKey.replace(parentProfile, name);
+ String newKey = StringUtils.replace(oldKey, parentProfile, name);
String val = props.getProperty(oldKey);
this.newProps.put(newKey, val);
}