/** * {@inheritDoc} */ protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject) throws UnmarshallingException { SubjectConfirmationData subjectCD = (SubjectConfirmationData) parentSAMLObject; subjectCD.getUnknownXMLObjects().add(childSAMLObject); }
/** * Extracts the {@link KeyInfo}s from the given subject confirmation data. * * @param confirmation subject confirmation data * @param assertion assertion bearing the subject to be confirmed * @param context current message processing context * * @return list of key informations available in the subject confirmation data, never null * * @throws AssertionValidationException if there is a problem processing the SubjectConfirmation * */ @Nonnull protected List<KeyInfo> getSubjectConfirmationKeyInformation( @Nonnull final SubjectConfirmation confirmation, @Nonnull final Assertion assertion, @Nonnull final ValidationContext context) throws AssertionValidationException { SubjectConfirmationData confirmationData = confirmation.getSubjectConfirmationData(); List<KeyInfo> keyInfos = new LazyList<>(); for (XMLObject object : confirmationData.getUnknownXMLObjects(KeyInfo.DEFAULT_ELEMENT_NAME)) { if (object != null) { keyInfos.add((KeyInfo) object); } } log.debug("Found '{}' KeyInfo children of SubjectConfirmationData", keyInfos.size()); return keyInfos; }
List<XMLObject> unknownObjects = subjectConfirmationData.getUnknownXMLObjects(); for (Object obj : subjectConfirmationDataBean.getAny()) { if (obj == null) {