From 048c9c94da9d4a1c9a5397634c4cb4a8604c3397 Mon Sep 17 00:00:00 2001 From: rudolf Date: Fri, 21 Jan 2005 18:27:35 +0000 Subject: fill NS previx to NS mapping HashMap git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@240 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../src/at/gv/egovernment/moa/id/auth/MOAIDAuthInitializer.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'id.server/src/at') diff --git a/id.server/src/at/gv/egovernment/moa/id/auth/MOAIDAuthInitializer.java b/id.server/src/at/gv/egovernment/moa/id/auth/MOAIDAuthInitializer.java index bfae6bf9c..30cb48587 100644 --- a/id.server/src/at/gv/egovernment/moa/id/auth/MOAIDAuthInitializer.java +++ b/id.server/src/at/gv/egovernment/moa/id/auth/MOAIDAuthInitializer.java @@ -4,6 +4,7 @@ import iaik.pki.PKIException; import iaik.pki.jsse.IAIKX509TrustManager; import java.security.GeneralSecurityException; +import java.util.HashMap; import java.io.IOException; @@ -21,6 +22,7 @@ import at.gv.egovernment.moa.logging.LoggingContext; import at.gv.egovernment.moa.logging.LoggingContextManager; import at.gv.egovernment.moa.spss.server.config.ConfigurationProvider; import at.gv.egovernment.moa.spss.server.iaik.config.IaikConfigurator; +import at.gv.egovernment.moa.util.Constants; /** * Web application initializer @@ -63,6 +65,13 @@ public class MOAIDAuthInitializer { // Initializes SSLSocketFactory store SSLUtils.initialize(); + // Initializes Namespace Map + Constants.nSMap.put(Constants.SAML_PREFIX, Constants.SAML_NS_URI); + //TODO RS change to correct Namespace as soon BMI has corrected the wrong NS + //nSMap.put(Constants.ECDSA_PREFIX, Constants.ECDSA_NS_URI); correct version + Constants.nSMap.put(Constants.ECDSA_PREFIX, "http://www.w3.org/2004/01/xmldsig-more#"); + Constants.nSMap.put(Constants.DSIG_PREFIX, Constants.DSIG_NS_URI); + // Loads the configuration AuthConfigurationProvider authConf = AuthConfigurationProvider.reload(); ConnectionParameter moaSPConnParam = authConf.getMoaSpConnectionParameter(); -- cgit v1.2.3