aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorpdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-11-30 13:51:10 +0000
committerpdanner <pdanner@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-11-30 13:51:10 +0000
commit9cb6c50352c29d136c82e24640dec8e0ba4b2ffb (patch)
treee95b0926234994c18d32c83bdb62a2c2264a2d3d /src/main/java
parent58d64238647801041666ffa8a1a1407276f48493 (diff)
downloadpdf-as-3-9cb6c50352c29d136c82e24640dec8e0ba4b2ffb.tar.gz
pdf-as-3-9cb6c50352c29d136c82e24640dec8e0ba4b2ffb.tar.bz2
pdf-as-3-9cb6c50352c29d136c82e24640dec8e0ba4b2ffb.zip
removed 1.5 deps
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@654 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java')
-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);
}