From 3b7776e9020ea8affdf9fcd10b12d2da28adcd08 Mon Sep 17 00:00:00 2001 From: Klaus Stranacher Date: Wed, 4 Sep 2013 23:51:25 +0200 Subject: Validation signing time (auth block) against server time Update MOA-ID sample configs (new ES Test-PEPS Url) WAI compliant template --- .../java/at/gv/egovernment/moa/util/Constants.java | 7 +- .../at/gv/egovernment/moa/util/XPathUtils.java | 2 +- id/ConfigWebTool/.classpath | 7 +- .../.settings/org.eclipse.wst.common.component | 3 +- id/server/auth/src/main/webapp/iframeHandyBKU.html | 7 +- .../auth/src/main/webapp/iframeOnlineBKU.html | 6 +- id/server/auth/src/main/webapp/index.html | 38 ++--- .../auth/src/main/webapp/template_handyBKU.html | 1 + .../auth/src/main/webapp/template_localBKU.html | 3 +- .../auth/src/main/webapp/template_onlineBKU.html | 4 +- .../conf/moa-id/SampleMOAIDConfiguration.xml | 2 +- .../conf/moa-id/SampleMOAIDConfigurationProxy.xml | 2 +- .../SampleMOAIDConfiguration_withTestBKs.xml | 2 +- .../SampleMOAIDConfiguration_withTestBKsProxy.xml | 2 +- .../parser/CreateXMLSignatureResponseParser.java | 9 ++ .../parser/VerifyXMLSignatureResponseParser.java | 2 + .../CreateXMLSignatureResponseValidator.java | 55 ++++++- .../resources/properties/id_messages_de.properties | 2 + id/server/moa-id-commons/.classpath | 13 +- id/server/moa-id-commons/.project | 2 +- id/templates/.classpath | 28 +++- .../.settings/org.eclipse.wst.common.component | 10 +- .../org.eclipse.wst.common.project.facet.core.xml | 4 +- spss/handbook/clients/referencedData/.classpath | 28 +++- .../.settings/org.eclipse.wst.common.component | 10 +- .../org.eclipse.wst.common.project.facet.core.xml | 4 +- spss/handbook/clients/webservice/.classpath | 65 ++++----- spss/handbook/clients/webservice/.project | 74 +++++----- spss/server/serverws/.classpath | 159 +++++---------------- spss/server/serverws/.project | 85 +++++------ .../.settings/org.eclipse.wst.common.component | 4 +- .../org.eclipse.wst.common.project.facet.core.xml | 4 +- 32 files changed, 321 insertions(+), 323 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 3b6e8c57d..75ea1534f 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,7 +265,7 @@ 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"; + public static final String XADES_1_1_1_NS_PREFIX = "xades111"; /** Local location of the XAdES v1.2.2 schema definition */ public static final String XADES_1_2_2_SCHEMA_LOCATION = @@ -273,6 +273,8 @@ public interface Constants { /** URI of the XAdES v1.2.2 namespace */ public static final String XADES_1_2_2_NS_URI = "http://uri.etsi.org/01903/v1.2.2#"; + + public static final String XADES_1_2_2_NS_PREFIX = "xades122"; /** Local location of the XAdES v1.1.1 schema definition */ public static final String XADES_1_3_2_SCHEMA_LOCATION = @@ -280,6 +282,8 @@ public interface Constants { /** URI of the XAdES v1.3.2 namespace */ public static final String XADES_1_3_2_NS_URI = "http://uri.etsi.org/01903/v1.3.2#"; + + public static final String XADES_1_3_2_NS_PREFIX = "xades132"; /** Local location of the XAdES v1.4.1 schema definition */ public static final String XADES_1_4_1_SCHEMA_LOCATION = @@ -288,6 +292,7 @@ public interface Constants { /** URI of the XAdES v1.4.1 namespace */ public static final String XADES_1_4_1_NS_URI = "http://uri.etsi.org/01903/v1.4.1#"; + public static final String XADES_1_4_1_NS_PREFIX = "xades141"; /** URI of the SAML 2.0 namespace. */ public static final String SAML2_NS_URI = "urn:oasis:names:tc:SAML:2.0:assertion"; 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 21c41257a..0dfccb034 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 @@ -385,7 +385,7 @@ public class XPathUtils { * null, if no node matched. * @throws XPathException An error occurred evaluating the XPath expression. */ - private static Node selectSingleNode( + public static Node selectSingleNode( Node contextNode, NamespaceContext nsContext, String exp) diff --git a/id/ConfigWebTool/.classpath b/id/ConfigWebTool/.classpath index 28bcc0ce1..7491c3688 100644 --- a/id/ConfigWebTool/.classpath +++ b/id/ConfigWebTool/.classpath @@ -17,11 +17,7 @@ - - - - - + @@ -33,6 +29,5 @@ - diff --git a/id/server/auth/.settings/org.eclipse.wst.common.component b/id/server/auth/.settings/org.eclipse.wst.common.component index b4ffa88f6..9725f5b61 100644 --- a/id/server/auth/.settings/org.eclipse.wst.common.component +++ b/id/server/auth/.settings/org.eclipse.wst.common.component @@ -17,7 +17,8 @@ - + + diff --git a/id/server/auth/src/main/webapp/iframeHandyBKU.html b/id/server/auth/src/main/webapp/iframeHandyBKU.html index b5936679f..0f6e1e282 100644 --- a/id/server/auth/src/main/webapp/iframeHandyBKU.html +++ b/id/server/auth/src/main/webapp/iframeHandyBKU.html @@ -8,11 +8,11 @@ -
+ + Falls Sie nicht automatisch weitergeleitet werden klicken Sie bitte hier: diff --git a/id/server/auth/src/main/webapp/template_onlineBKU.html b/id/server/auth/src/main/webapp/template_onlineBKU.html index 77f7d076a..565955538 100644 --- a/id/server/auth/src/main/webapp/template_onlineBKU.html +++ b/id/server/auth/src/main/webapp/template_onlineBKU.html @@ -11,7 +11,8 @@ - + + Falls Sie nicht automatisch weitergeleitet werden klicken Sie bitte hier: @@ -23,7 +24,6 @@ -
diff --git a/id/server/data/deploy/conf/moa-id/SampleMOAIDConfiguration.xml b/id/server/data/deploy/conf/moa-id/SampleMOAIDConfiguration.xml index a8a9b95da..b70b8f3f6 100644 --- a/id/server/data/deploy/conf/moa-id/SampleMOAIDConfiguration.xml +++ b/id/server/data/deploy/conf/moa-id/SampleMOAIDConfiguration.xml @@ -51,7 +51,7 @@