/** {@inheritDoc} */ protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject) throws UnmarshallingException { EncryptionMethod em = (EncryptionMethod) parentXMLObject; if (childXMLObject instanceof KeySize) { em.setKeySize((KeySize) childXMLObject); } else if (childXMLObject instanceof OAEPparams) { em.setOAEPparams((OAEPparams) childXMLObject); } else { em.getUnknownXMLObjects().add(childXMLObject); } }
/** {@inheritDoc} */ protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject) throws UnmarshallingException { EncryptionMethod em = (EncryptionMethod) parentXMLObject; if (childXMLObject instanceof KeySize) { em.setKeySize((KeySize) childXMLObject); } else if (childXMLObject instanceof OAEPparams) { em.setOAEPparams((OAEPparams) childXMLObject); } else { em.getUnknownXMLObjects().add(childXMLObject); } }