aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/main
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2020-07-06 08:56:58 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2020-07-06 08:56:58 +0200
commit132d79f5b4dca0beb10743a81899c8afa09913f9 (patch)
tree2224e237842d0616ffb532441826507663439404 /id/server/idserverlib/src/main
parent953dbd667063373bf54bbcced3d8884494219e15 (diff)
downloadmoa-id-spss-132d79f5b4dca0beb10743a81899c8afa09913f9.tar.gz
moa-id-spss-132d79f5b4dca0beb10743a81899c8afa09913f9.tar.bz2
moa-id-spss-132d79f5b4dca0beb10743a81899c8afa09913f9.zip
update Cache encryption layer
Diffstat (limited to 'id/server/idserverlib/src/main')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/AbstractEncrytionUtil.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/AbstractEncrytionUtil.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/AbstractEncrytionUtil.java
index 8fdf1eab8..d3a9486b0 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/AbstractEncrytionUtil.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/util/AbstractEncrytionUtil.java
@@ -72,7 +72,7 @@ public abstract class AbstractEncrytionUtil {
PBEKeySpec keySpec = new PBEKeySpec(key.toCharArray());
SecretKeyFactory factory = SecretKeyFactory.getInstance("PKCS#5", "IAIK");
- PBEKey pbeKey = (PBEKey)factory.generateSecret(keySpec);
+ SecretKey pbeKey = factory.generateSecret(keySpec);
SecureRandom random = new SecureRandom();
KeyGenerator pbkdf2 = KeyGenerator.getInstance("PBKDF2", "IAIK");
@@ -82,7 +82,7 @@ public abstract class AbstractEncrytionUtil {
salt.getBytes(),
2000,
16);
-
+
pbkdf2.init(parameterSpec, random);
SecretKey derivedKey = pbkdf2.generateKey();