public class CurrentAddressTypeMarshaller extends AbstractSAMLObjectMarshaller
CurrentAddressType.
Since the eIDAS CurrentAddressType is defined to contain a string value that is in fact the Base64-encoding
of an XML-snippet of CurrentAddressStructuredType we have to fool around a bit here.
Personal note: I really can't understand how anyone thinks they made things easier for implemetors when they figured that out.
| Constructor and Description |
|---|
CurrentAddressTypeMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
marshallChildElements(XMLObject xmlObject,
Element domElement)
Even though we do have child elements, we need to serialize those, Base64-encode them and add them as a
Base64-encoded string value.
|
protected void |
marshallElementContent(XMLObject xmlObject,
Element domElement)
The element content of a
CurrentAddressType is the Base64-encoding of the serialized value of the
CurrentAddressStructuredType. |
marshall, marshall, marshallAttributescheckXMLObjectIsTarget, marshall, marshallInto, marshallNamespacePrefix, marshallNamespaces, marshallSchemaInstanceAttributes, setDocumentElementprotected void marshallChildElements(XMLObject xmlObject, Element domElement) throws MarshallingException
marshallElementContent(XMLObject, Element) do the work.marshallChildElements in class AbstractXMLObjectMarshallerMarshallingExceptionprotected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException
CurrentAddressType is the Base64-encoding of the serialized value of the
CurrentAddressStructuredType. So ... we have to get there by iterating over our child elements.marshallElementContent in class AbstractSAMLObjectMarshallerMarshallingExceptionCopyright © 2018 Litsec AB. All rights reserved.