private void write(SubjectConfirmationType subjectConfirmationType) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.SUBJECT_CONFIRMATION.get(), ASSERTION_NSURI.get()); StaxUtil.writeAttribute(writer, JBossSAMLConstants.METHOD.get(), subjectConfirmationType.getMethod()); BaseIDAbstractType baseID = subjectConfirmationType.getBaseID(); if (baseID != null) { write(baseID); } NameIDType nameIDType = subjectConfirmationType.getNameID(); if (nameIDType != null) { write(nameIDType, new QName(ASSERTION_NSURI.get(), JBossSAMLConstants.NAMEID.get(), ASSERTION_PREFIX)); } SubjectConfirmationDataType subjectConfirmationData = subjectConfirmationType.getSubjectConfirmationData(); if (subjectConfirmationData != null) { write(subjectConfirmationData); } StaxUtil.writeEndElement(writer); }
/** * Write an {@code AttributeType} to stream * * @param attributeType * @param out * * @throws ProcessingException */ public void write(AttributeType attributeType) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.ATTRIBUTE.get(), ASSERTION_NSURI.get()); writeAttributeTypeWithoutRootTag(attributeType); StaxUtil.writeEndElement(writer); StaxUtil.flush(writer); }
if (attributeValue instanceof String) writeStringAttributeValue((String) attributeValue);
if (attributeValue instanceof String) writeStringAttributeValue((String) attributeValue);
private void write(SubjectConfirmationType subjectConfirmationType) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.SUBJECT_CONFIRMATION.get(), ASSERTION_NSURI.get()); StaxUtil.writeAttribute(writer, JBossSAMLConstants.METHOD.get(), subjectConfirmationType.getMethod()); BaseIDAbstractType baseID = subjectConfirmationType.getBaseID(); if (baseID != null) { write(baseID); } NameIDType nameIDType = subjectConfirmationType.getNameID(); if (nameIDType != null) { write(nameIDType, new QName(ASSERTION_NSURI.get(), JBossSAMLConstants.NAMEID.get(), ASSERTION_PREFIX)); } SubjectConfirmationDataType subjectConfirmationData = subjectConfirmationType.getSubjectConfirmationData(); if (subjectConfirmationData != null) { write(subjectConfirmationData); } StaxUtil.writeEndElement(writer); }
/** * Write an {@code AttributeType} to stream * * @param attributeType * @param out * @throws ProcessingException */ public void write(AttributeType attributeType) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.ATTRIBUTE.get(), ASSERTION_NSURI.get()); writeAttributeTypeWithoutRootTag(attributeType); StaxUtil.writeEndElement(writer); StaxUtil.flush(writer); }
if (attributeValue != null) { if (attributeValue instanceof String) { writeStringAttributeValue((String) attributeValue); } else throw logger.writerUnsupportedAttributeValueError(attributeValue.getClass().getName());
private void write(SubjectConfirmationType subjectConfirmationType) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.SUBJECT_CONFIRMATION.get(), ASSERTION_NSURI.get()); StaxUtil.writeAttribute(writer, JBossSAMLConstants.METHOD.get(), subjectConfirmationType.getMethod()); BaseIDAbstractType baseID = subjectConfirmationType.getBaseID(); if (baseID != null) { write(baseID); } NameIDType nameIDType = subjectConfirmationType.getNameID(); if (nameIDType != null) { write(nameIDType, new QName(ASSERTION_NSURI.get(), JBossSAMLConstants.NAMEID.get(), ASSERTION_PREFIX)); } SubjectConfirmationDataType subjectConfirmationData = subjectConfirmationType.getSubjectConfirmationData(); if (subjectConfirmationData != null) { write(subjectConfirmationData); } StaxUtil.writeEndElement(writer); }
/** * Write an {@code AttributeType} to stream * * @param attributeType * @param out * @throws ProcessingException */ public void write(AttributeType attributeType) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.ATTRIBUTE.get(), ASSERTION_NSURI.get()); writeAttributeTypeWithoutRootTag(attributeType); StaxUtil.writeEndElement(writer); StaxUtil.flush(writer); }
if (attributeValue != null) { if (attributeValue instanceof String) { writeStringAttributeValue((String) attributeValue); } else throw logger.writerUnsupportedAttributeValueError(attributeValue.getClass().getName());
private void write(SubjectConfirmationType subjectConfirmationType) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.SUBJECT_CONFIRMATION.get(), ASSERTION_NSURI.get()); StaxUtil.writeAttribute(writer, JBossSAMLConstants.METHOD.get(), subjectConfirmationType.getMethod()); BaseIDAbstractType baseID = subjectConfirmationType.getBaseID(); if (baseID != null) { write(baseID); } NameIDType nameIDType = subjectConfirmationType.getNameID(); if (nameIDType != null) { write(nameIDType, new QName(ASSERTION_NSURI.get(), JBossSAMLConstants.NAMEID.get(), ASSERTION_PREFIX)); } SubjectConfirmationDataType subjectConfirmationData = subjectConfirmationType.getSubjectConfirmationData(); if (subjectConfirmationData != null) { write(subjectConfirmationData); } StaxUtil.writeEndElement(writer); }
/** * Write an {@code AttributeType} to stream * * @param attributeType * @param out * @throws ProcessingException */ public void write(AttributeType attributeType) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.ATTRIBUTE.get(), ASSERTION_NSURI.get()); writeAttributeTypeWithoutRootTag(attributeType); StaxUtil.writeEndElement(writer); StaxUtil.flush(writer); }
if (attributeValue != null) { if (attributeValue instanceof String) { writeStringAttributeValue((String) attributeValue); } else throw logger.writerUnsupportedAttributeValueError(attributeValue.getClass().getName());
private void write(SubjectConfirmationType subjectConfirmationType) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.SUBJECT_CONFIRMATION.get(), ASSERTION_NSURI.get()); StaxUtil.writeAttribute(writer, JBossSAMLConstants.METHOD.get(), subjectConfirmationType.getMethod()); BaseIDAbstractType baseID = subjectConfirmationType.getBaseID(); if (baseID != null) { write(baseID); } NameIDType nameIDType = subjectConfirmationType.getNameID(); if (nameIDType != null) { write(nameIDType, new QName(ASSERTION_NSURI.get(), JBossSAMLConstants.NAMEID.get(), ASSERTION_PREFIX)); } SubjectConfirmationDataType subjectConfirmationData = subjectConfirmationType.getSubjectConfirmationData(); if (subjectConfirmationData != null) { write(subjectConfirmationData); } StaxUtil.writeEndElement(writer); }
/** * Write an {@code AttributeType} to stream * * @param attributeType * @param out * * @throws ProcessingException */ public void write(AttributeType attributeType) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.ATTRIBUTE.get(), ASSERTION_NSURI.get()); writeAttributeTypeWithoutRootTag(attributeType); StaxUtil.writeEndElement(writer); StaxUtil.flush(writer); }
if (baseID instanceof NameIDType) { NameIDType nameIDType = (NameIDType) baseID; write(nameIDType, new QName(ASSERTION_NSURI.get(), JBossSAMLConstants.NAMEID.get(), ASSERTION_PREFIX)); if (confirmations != null) { for (SubjectConfirmationType confirmation : confirmations) { write(confirmation); if (subjectConfirmations != null) { for (SubjectConfirmationType subjectConfirmationType : subjectConfirmations) { write(subjectConfirmationType);
if (baseID instanceof NameIDType) { NameIDType nameIDType = (NameIDType) baseID; write(nameIDType, new QName(ASSERTION_NSURI.get(), JBossSAMLConstants.NAMEID.get(), ASSERTION_PREFIX)); if (confirmations != null) { for (SubjectConfirmationType confirmation : confirmations) { write(confirmation); if (subjectConfirmations != null) { for (SubjectConfirmationType subjectConfirmationType : subjectConfirmations) { write(subjectConfirmationType);
if (baseID instanceof NameIDType) { NameIDType nameIDType = (NameIDType) baseID; write(nameIDType, new QName(ASSERTION_NSURI.get(), JBossSAMLConstants.NAMEID.get(), ASSERTION_PREFIX)); if (confirmations != null) { for (SubjectConfirmationType confirmation : confirmations) { write(confirmation); if (subjectConfirmations != null) { for (SubjectConfirmationType subjectConfirmationType : subjectConfirmations) { write(subjectConfirmationType);