/** {@inheritDoc} */ protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { SubjectConfirmation subjectConfirmation = (SubjectConfirmation) parentSAMLObject; if (childSAMLObject instanceof ConfirmationMethod) { subjectConfirmation.getConfirmationMethods().add((ConfirmationMethod) childSAMLObject); } else if (childSAMLObject instanceof KeyInfo) { subjectConfirmation.setKeyInfo((KeyInfo)childSAMLObject); } else { subjectConfirmation.setSubjectConfirmationData(childSAMLObject); } } }
if (subjectBean.getKeyInfo() != null) { KeyInfo keyInfo = createKeyInfo(subjectBean.getKeyInfo()); subjectConfirmation.setKeyInfo(keyInfo);