aboutsummaryrefslogtreecommitdiff
path: root/id/server/modules/moa-id-module-bkaMobilaAuthSAML2Test/src/main/java/at
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2017-10-04 12:46:27 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2017-10-04 12:46:27 +0200
commitb04b2db585d4878272778641edfbb24f4fdba89d (patch)
treea92f0578635a05179592a0b22d318d376b3bfa10 /id/server/modules/moa-id-module-bkaMobilaAuthSAML2Test/src/main/java/at
parent635b2657a1f910f1f4c584328ede6387279228a2 (diff)
downloadmoa-id-spss-b04b2db585d4878272778641edfbb24f4fdba89d.tar.gz
moa-id-spss-b04b2db585d4878272778641edfbb24f4fdba89d.tar.bz2
moa-id-spss-b04b2db585d4878272778641edfbb24f4fdba89d.zip
update eID decryption implementation in mobile-auth module
Diffstat (limited to 'id/server/modules/moa-id-module-bkaMobilaAuthSAML2Test/src/main/java/at')
-rw-r--r--id/server/modules/moa-id-module-bkaMobilaAuthSAML2Test/src/main/java/at/gv/egovernment/moa/id/auth/modules/bkamobileauthtests/tasks/FirstBKAMobileAuthTask.java12
1 files changed, 1 insertions, 11 deletions
diff --git a/id/server/modules/moa-id-module-bkaMobilaAuthSAML2Test/src/main/java/at/gv/egovernment/moa/id/auth/modules/bkamobileauthtests/tasks/FirstBKAMobileAuthTask.java b/id/server/modules/moa-id-module-bkaMobilaAuthSAML2Test/src/main/java/at/gv/egovernment/moa/id/auth/modules/bkamobileauthtests/tasks/FirstBKAMobileAuthTask.java
index d6e814a9d..43043ddd6 100644
--- a/id/server/modules/moa-id-module-bkaMobilaAuthSAML2Test/src/main/java/at/gv/egovernment/moa/id/auth/modules/bkamobileauthtests/tasks/FirstBKAMobileAuthTask.java
+++ b/id/server/modules/moa-id-module-bkaMobilaAuthSAML2Test/src/main/java/at/gv/egovernment/moa/id/auth/modules/bkamobileauthtests/tasks/FirstBKAMobileAuthTask.java
@@ -250,17 +250,7 @@ public class FirstBKAMobileAuthTask extends AbstractAuthServletTask {
SecretKey derivedKey = factory.generateSecret(spec);
SecretKeySpec symKeySpec = new SecretKeySpec(derivedKey.getEncoded(), "AES");
return symKeySpec;
-
-// KeyGenerator pbkdf2 = KeyGenerator.getInstance("PBKDF2");
-// PBEKeyAndParameterSpec parameterSpec =
-// new PBEKeyAndParameterSpec(decryptionPassPhrase.getBytes(), salt, 2000, 16);
-// pbkdf2.init(parameterSpec, random);
-// SecretKey derivedKey = pbkdf2.generateKey();
-//
-// SecretKeySpec spec = new SecretKeySpec(derivedKey.getEncoded(), "AES");
-// SecretKeyFactory kf = SecretKeyFactory.getInstance("AES");
-// return kf.generateSecret(spec);
-
+
} catch (NoSuchAlgorithmException | InvalidKeySpecException e) {
Logger.error("Mobile-Auth Module has an internal errror.", e);
throw new MOAIDException("Mobile-Auth Module has an internal errror.", null, e);