aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/java/at/gv/egovernment/moa
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/main/java/at/gv/egovernment/moa')
-rw-r--r--common/src/main/java/at/gv/egovernment/moa/util/Constants.java2
-rw-r--r--common/src/main/java/at/gv/egovernment/moa/util/XPathUtils.java5
2 files changed, 5 insertions, 2 deletions
diff --git a/common/src/main/java/at/gv/egovernment/moa/util/Constants.java b/common/src/main/java/at/gv/egovernment/moa/util/Constants.java
index c4f7eb3f3..39cee3a04 100644
--- a/common/src/main/java/at/gv/egovernment/moa/util/Constants.java
+++ b/common/src/main/java/at/gv/egovernment/moa/util/Constants.java
@@ -265,6 +265,8 @@ public interface Constants {
/** URI of the XAdES v1.1.1 namespace */
public static final String XADES_1_1_1_NS_URI = "http://uri.etsi.org/01903/v1.1.1#";
+ public static final String XADES_1_1_1_NS_PREFIX = "xades";
+
/** Local location of the XAdES v1.2.2 schema definition */
public static final String XADES_1_2_2_SCHEMA_LOCATION =
SCHEMA_ROOT + "XAdES-1.2.2.xsd";
diff --git a/common/src/main/java/at/gv/egovernment/moa/util/XPathUtils.java b/common/src/main/java/at/gv/egovernment/moa/util/XPathUtils.java
index faa009b0e..21c41257a 100644
--- a/common/src/main/java/at/gv/egovernment/moa/util/XPathUtils.java
+++ b/common/src/main/java/at/gv/egovernment/moa/util/XPathUtils.java
@@ -87,6 +87,7 @@ public class XPathUtils {
ctx.addNamespace(Constants.SAML2_PREFIX, Constants.SAML2_NS_URI);
ctx.addNamespace(Constants.SAML2P_PREFIX, Constants.SAML2P_NS_URI);
ctx.addNamespace(Constants.XENC_PREFIX, Constants.XENC_NS_URI);
+ ctx.addNamespace(Constants.XADES_1_1_1_NS_PREFIX, Constants.XADES_1_1_1_NS_URI);
NS_CONTEXT = ctx;
}
@@ -480,7 +481,7 @@ public class XPathUtils {
else
{
MessageProvider msg = MessageProvider.getInstance();
- String message = msg.getMessage("xpath.00", new Object[] { "Ungültiger Security Layer Namespace: \"" + sLNamespace + "\"."});
+ String message = msg.getMessage("xpath.00", new Object[] { "Ung�ltiger Security Layer Namespace: \"" + sLNamespace + "\"."});
throw new XPathException(message, null);
}
@@ -546,7 +547,7 @@ public class XPathUtils {
return slPrefix;
} else {
MessageProvider msg = MessageProvider.getInstance();
- String message = msg.getMessage("xpath.00", new Object[] { "Ungültiger SecurityLayer Namespace: \"" + nameSpace + "\"."});
+ String message = msg.getMessage("xpath.00", new Object[] { "Ung�ltiger SecurityLayer Namespace: \"" + nameSpace + "\"."});
throw new XPathException(message, null);
}
}