summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-03-13 19:59:35 +0000
committertkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-03-13 19:59:35 +0000
commit81242d821c3f18ce7ebef0065db58ac972f965cf (patch)
tree286e4c39e5b7829b788bad62f728c0723fe1069e
parent7ad0e5e8d3d94ef40c7bfd7bb7d86fa01fabb8f5 (diff)
downloadmocca-81242d821c3f18ce7ebef0065db58ac972f965cf.tar.gz
mocca-81242d821c3f18ce7ebef0065db58ac972f965cf.tar.bz2
mocca-81242d821c3f18ce7ebef0065db58ac972f965cf.zip
Eliminate whitespace when reading password for SWCard
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1031 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
-rw-r--r--smcc/src/main/java/at/gv/egiz/smcc/SWCard.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/smcc/src/main/java/at/gv/egiz/smcc/SWCard.java b/smcc/src/main/java/at/gv/egiz/smcc/SWCard.java
index 273fb779..33f4019b 100644
--- a/smcc/src/main/java/at/gv/egiz/smcc/SWCard.java
+++ b/smcc/src/main/java/at/gv/egiz/smcc/SWCard.java
@@ -218,7 +218,7 @@ public class SWCard implements SignatureCard {
for (int l; (l = reader.read(b)) != -1;) {
sb.append(b, 0, l);
}
- return sb.toString().toCharArray();
+ return sb.toString().trim().toCharArray();
} catch (IOException e) {
throw new SignatureCardException("Failed to read file '" + passwordFileName + "'.");
}