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.metadata.impl;
22
23 import org.opensaml.saml2.metadata.IDPSSODescriptor;
24 import org.opensaml.xml.XMLObject;
25 import org.opensaml.xml.io.MarshallingException;
26 import org.w3c.dom.Element;
27
28
29
30
31 public class IDPSSODescriptorMarshaller extends SSODescriptorMarshaller {
32
33
34 protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
35 IDPSSODescriptor descriptor = (IDPSSODescriptor) samlObject;
36
37 if (descriptor.getWantAuthnRequestsSignedXSBoolean() != null) {
38 domElement.setAttributeNS(null, IDPSSODescriptor.WANT_AUTHN_REQ_SIGNED_ATTRIB_NAME, descriptor
39 .getWantAuthnRequestsSignedXSBoolean().toString());
40 }
41
42 super.marshallAttributes(samlObject, domElement);
43 }
44 }