1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.opensaml.saml1.core.impl;
18
19 import org.opensaml.common.impl.AbstractSAMLObjectMarshaller;
20 import org.opensaml.saml1.core.AssertionArtifact;
21 import org.opensaml.xml.XMLObject;
22 import org.opensaml.xml.io.MarshallingException;
23 import org.opensaml.xml.util.XMLHelper;
24 import org.w3c.dom.Element;
25
26
27
28
29 public class AssertionArtifactMarshaller extends AbstractSAMLObjectMarshaller {
30
31
32 protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
33 AssertionArtifact assertionArtifact = (AssertionArtifact) samlObject;
34 if (assertionArtifact.getAssertionArtifact() != null) {
35 XMLHelper.appendTextContent(domElement, assertionArtifact.getAssertionArtifact());
36 }
37 }
38 }