aboutsummaryrefslogtreecommitdiff
path: root/id/server/moa-id-commons/src/main/java/at/gv
diff options
context:
space:
mode:
authorChristian Maierhofer <cmaierhofer@iaik.tugraz.at>2016-05-18 13:39:45 +0200
committerChristian Maierhofer <cmaierhofer@iaik.tugraz.at>2016-05-18 13:39:45 +0200
commit9e5fefab3ea53859e31af25c5fd3e68a23fe9883 (patch)
treea7d1dee0a19f38c720244736f09a86a49536fee2 /id/server/moa-id-commons/src/main/java/at/gv
parent3d88ece5e3ed76f9a023681d5cd2d5a19a863c6f (diff)
downloadmoa-id-spss-9e5fefab3ea53859e31af25c5fd3e68a23fe9883.tar.gz
moa-id-spss-9e5fefab3ea53859e31af25c5fd3e68a23fe9883.tar.bz2
moa-id-spss-9e5fefab3ea53859e31af25c5fd3e68a23fe9883.zip
changed constants to final static hash map
Diffstat (limited to 'id/server/moa-id-commons/src/main/java/at/gv')
-rw-r--r--id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/util/Constants.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/util/Constants.java b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/util/Constants.java
index 5a5f4edac..260b2ecb1 100644
--- a/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/util/Constants.java
+++ b/id/server/moa-id-commons/src/main/java/at/gv/egovernment/moa/util/Constants.java
@@ -24,7 +24,10 @@
package at.gv.egovernment.moa.util;
+import java.util.Collections;
import java.util.HashMap;
+import java.util.Map;
+
/**
* Contains various constants used throughout the system.
@@ -509,6 +512,14 @@ public interface Constants {
/**
* A map used to map namespace prefixes to namespace URIs
*/
- public static HashMap<String, String> nSMap = new HashMap<String, String>(5);
+ public static final Map<String, String> nSMap = Collections.unmodifiableMap(new HashMap<String, String>(){
+ private static final long serialVersionUID = 3845384324295136490L;
+ {
+ put(Constants.SAML_PREFIX, Constants.SAML_NS_URI);
+ put(Constants.ECDSA_PREFIX, "http://www.w3.org/2001/04/xmldsig-more#");
+ put(Constants.DSIG_PREFIX, Constants.DSIG_NS_URI);
+ }
+ });
+
}