/** {@inheritDoc} */ protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject) throws UnmarshallingException { EncryptedKey ek = (EncryptedKey) parentXMLObject; if (childXMLObject instanceof ReferenceList) { ek.setReferenceList((ReferenceList) childXMLObject); } else if (childXMLObject instanceof CarriedKeyName) { ek.setCarriedKeyName((CarriedKeyName) childXMLObject); } else { super.processChildElement(parentXMLObject, childXMLObject); } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject) throws UnmarshallingException { EncryptedKey ek = (EncryptedKey) parentXMLObject; if (childXMLObject instanceof ReferenceList) { ek.setReferenceList((ReferenceList) childXMLObject); } else if (childXMLObject instanceof CarriedKeyName) { ek.setCarriedKeyName((CarriedKeyName) childXMLObject); } else { super.processChildElement(parentXMLObject, childXMLObject); } }
encKey.setReferenceList(referenceListBuilder.buildObject());