aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2016-02-24 14:02:43 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2016-02-24 14:02:43 +0100
commit3bee4536dce4136d83d6d815e6118e94f1efe8fd (patch)
tree796570f93b7cc6f17ce53cc0759da790967a77fa /id/server/idserverlib/src
parentaa29e21e7356aee64179eebfbdb25fa71dc505f6 (diff)
downloadmoa-id-spss-3bee4536dce4136d83d6d815e6118e94f1efe8fd.tar.gz
moa-id-spss-3bee4536dce4136d83d6d815e6118e94f1efe8fd.tar.bz2
moa-id-spss-3bee4536dce4136d83d6d815e6118e94f1efe8fd.zip
add or move some log messages
Diffstat (limited to 'id/server/idserverlib/src')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/MOAIDAuthInitializer.java22
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/AbstractAuthProtocolModulController.java2
2 files changed, 21 insertions, 3 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/MOAIDAuthInitializer.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/MOAIDAuthInitializer.java
index 5968736f8..ce158d7fe 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/MOAIDAuthInitializer.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/auth/MOAIDAuthInitializer.java
@@ -5,6 +5,8 @@ package at.gv.egovernment.moa.id.auth;
import java.io.IOException;
import java.security.GeneralSecurityException;
+import java.security.Provider;
+import java.security.Security;
import javax.activation.CommandMap;
import javax.activation.MailcapCommandMap;
@@ -204,12 +206,11 @@ public class MOAIDAuthInitializer implements WebApplicationInitializer {
Logger.warn(MOAIDMessageProvider.getInstance().getMessage(
"init.01", null), e);
}
-
- Logger.info("Loading security providers.");
+
+ Logger.info("Loading Java security providers.");
IAIK.addAsProvider();
ECCProvider.addAsProvider();
-
// Initializes SSLSocketFactory store
SSLUtils.initialize();
@@ -242,6 +243,21 @@ public class MOAIDAuthInitializer implements WebApplicationInitializer {
}
+
+ //IAIK.addAsProvider();
+ //ECCProvider.addAsProvider();
+
+ Security.insertProviderAt(IAIK.getInstance(), 0);
+ Security.addProvider(new ECCProvider());
+
+ if (Logger.isDebugEnabled()) {
+ Logger.debug("Loaded Security Provider:");
+ Provider[] providerList = Security.getProviders();
+ for (int i=0; i<providerList.length; i++)
+ Logger.debug(i + ": " + providerList[i].getName() + " Version " + providerList[i].getVersion());
+
+ }
+
// Starts the session cleaner thread to remove unpicked authentication data
AuthenticationSessionCleaner sessioncleaner = rootContext.getBean("AuthenticationSessionCleaner", AuthenticationSessionCleaner.class);
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/AbstractAuthProtocolModulController.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/AbstractAuthProtocolModulController.java
index bb89f2e03..0b2fe879a 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/AbstractAuthProtocolModulController.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/AbstractAuthProtocolModulController.java
@@ -119,6 +119,8 @@ public abstract class AbstractAuthProtocolModulController extends AbstractContro
//if Single Sign-On functionality is enabled for this request
if (pendingReq.needSingleSignOnFunctionality()) {
+ Logger.debug("Add SSO information to MOASession.");
+
//Store SSO information into database
newSSOSessionId = ssomanager.createSSOSessionInformations(moaSession.getSessionID(),
pendingReq.getOAURL());