Create a class that extends org.opensaml.common.impl.AbstractSAMLObjectMarshaller
and meets the following guidelines:
super()
.marshallAttributes(XMLObject, Element)
if you need to marshall information from the SAMLObject into attributes on the given DOM ElementmarshallElementContent(SAMLObject, Element)
if you need to marshall information from the SAMLObject into the DOM Element's content. Use the XMLHelper#appendTextContent(Element, String)
method to add your string content to the Element.If your class requires additional configuration information this can be provided in the OpenSAML configuration file; refer to the Extending the ObjectProvider section for more information.