aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/java
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2015-10-16 08:05:42 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2015-10-16 08:05:42 +0200
commit3a53c4e82644d9311139be469556bf0b05d413e8 (patch)
treec534a7b48fb48b05989c11e713746470f22b6bd7 /common/src/main/java
parentaed2f6f6511d9fd027b24f3810f057f5182c3d60 (diff)
downloadmoa-id-spss-3a53c4e82644d9311139be469556bf0b05d413e8.tar.gz
moa-id-spss-3a53c4e82644d9311139be469556bf0b05d413e8.tar.bz2
moa-id-spss-3a53c4e82644d9311139be469556bf0b05d413e8.zip
add SAML2 Metadata namespace and schema to validate openSAML signed metadata
Diffstat (limited to 'common/src/main/java')
-rw-r--r--common/src/main/java/at/gv/egovernment/moa/util/Constants.java11
1 files changed, 11 insertions, 0 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 8d71f2e84..5d12691f8 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
@@ -381,6 +381,16 @@ public interface Constants {
public static final String XENC_SCHEMA_LOCATION =
SCHEMA_ROOT + "xenc-schema.xsd";
+ /** Prefix used for the XML Encryption XML namespace */
+ public static final String SAML2_METADATA_PREFIX = "md";
+
+ /** Prefix used for the XML Encryption XML namespace */
+ public static final String SAML2_METADATA_URI = "urn:oasis:names:tc:SAML:2.0:metadata";
+
+ /** Local location of the XML Encryption XML schema definition. */
+ public static final String SAML2_METADATA_SCHEMA_LOCATION =
+ SCHEMA_ROOT + "saml-schema-metadata-2.0.xsd";
+
/**
* Contains all namespaces and local schema locations for XML schema
* definitions relevant for MOA. For use in validating XML parsers.
@@ -413,6 +423,7 @@ public interface Constants {
+ (SAML2P_NS_URI + " " + SAML2P_SCHEMA_LOCATION + " ")
+ (STORK_NS_URI + " " + STORK_SCHEMA_LOCATION + " ")
+ (STORKP_NS_URI + " " + STORKP_SCHEMA_LOCATION + " ")
+ + (SAML2_METADATA_URI + " " + SAML2_METADATA_SCHEMA_LOCATION + " ")
+ (XENC_NS_URI + " " + XENC_SCHEMA_LOCATION);
/** URN prefix for bPK and wbPK. */