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