nameIDType.setValue(idp.getNameIDFormatValue());
JAXBElement<NameIDType> jaxbNameIDType = JBossSAMLBaseFactory.createNameID(nameIDType);
subjectType.getContent().add(jaxbNameIDType);
SubjectConfirmationType subjectConfirmation =
JBossSAMLBaseFactory.createSubjectConfirmation(idp.getSubjectConfirmationMethod());
SubjectConfirmationDataType subjectConfirmationData =
JBossSAMLBaseFactory.createSubjectConfirmationData(sp.getRequestID(),
responseDestinationURI, issueInstant);
subjectConfirmation.setSubjectConfirmationData(subjectConfirmationData);
JAXBElement<SubjectConfirmationType> jaxbSubjectConfirmationType =
JBossSAMLBaseFactory.createSubjectConfirmation(subjectConfirmation);
subjectType.getContent().add(jaxbSubjectConfirmationType);