From 184df368ad28c1bf77fc40627ff46224937c0646 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Wed, 24 Jan 2018 07:24:43 +0100 Subject: fix problem with Stylesheet transformation and CMS signatures --- .../gv/egiz/bku/slcommands/impl/CreateCMSSignatureResultImpl.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bkucommon/src/main/java/at') diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/CreateCMSSignatureResultImpl.java b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/CreateCMSSignatureResultImpl.java index 967a4bae..6163ab39 100644 --- a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/CreateCMSSignatureResultImpl.java +++ b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/CreateCMSSignatureResultImpl.java @@ -35,6 +35,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.w3c.dom.Document; import org.w3c.dom.Element; +import org.w3c.dom.Node; import at.buergerkarte.namespaces.securitylayer._1_2_3.CreateCMSSignatureResponseType; import at.buergerkarte.namespaces.securitylayer._1_2_3.ObjectFactory; @@ -62,7 +63,7 @@ public class CreateCMSSignatureResultImpl extends SLResultImpl implements Create /** * The CMSSignatureResponse. */ - private Element content; + private Node content; /** * Creates a new instance of this CreateCMSSignatureResultImpl with the given @@ -102,7 +103,8 @@ public class CreateCMSSignatureResultImpl extends SLResultImpl implements Create log.error("Failed to marshall 'CreateCMSSignatureResponse'.", e); throw new SLRuntimeException(e); } - content = ((Document)res.getNode()).getDocumentElement(); + + content = res.getNode(); } @Override @@ -112,6 +114,6 @@ public class CreateCMSSignatureResultImpl extends SLResultImpl implements Create @Override public Element getContent() { - return content; + return (Element) content; } } -- cgit v1.2.3