diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2018-01-24 07:24:43 +0100 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2018-01-24 07:24:43 +0100 |
commit | 184df368ad28c1bf77fc40627ff46224937c0646 (patch) | |
tree | b2d318f1adc411370079abd7093d3b642b5d0458 /bkucommon/src | |
parent | 1b214b54c0f67125f2f6501bab7fadbd8f68d5c0 (diff) | |
download | mocca-184df368ad28c1bf77fc40627ff46224937c0646.tar.gz mocca-184df368ad28c1bf77fc40627ff46224937c0646.tar.bz2 mocca-184df368ad28c1bf77fc40627ff46224937c0646.zip |
fix problem with Stylesheet transformation and CMS signatures
Diffstat (limited to 'bkucommon/src')
-rw-r--r-- | bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/CreateCMSSignatureResultImpl.java | 8 |
1 files changed, 5 insertions, 3 deletions
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; } } |