/** {@inheritDoc} */ protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException { ConfirmationMethod confirmationMethod = (ConfirmationMethod) samlObject; ElementSupport.appendTextContent(domElement, confirmationMethod.getConfirmationMethod()); } }
/** * Create an efficient field-wise copy of a {@link SubjectConfirmation}. * * @param confirmation the object to clone * * @return the copy */ @Nonnull private SubjectConfirmation cloneConfirmation(@Nonnull final SubjectConfirmation confirmation) { final SubjectConfirmation clone = confirmationBuilder.buildObject(); for (final ConfirmationMethod method : confirmation.getConfirmationMethods()) { final ConfirmationMethod newMethod = confirmationMethodBuilder.buildObject(); newMethod.setConfirmationMethod(method.getConfirmationMethod()); clone.getConfirmationMethods().add(newMethod); } return clone; }
if (data instanceof ConfirmationMethod) { ConfirmationMethod method = (ConfirmationMethod) data; methods.add(method.getConfirmationMethod()); methods.add(confirmationMethod.getConfirmationMethod());