SAML11SubjectConfirmationType subjectConfirmationType = new SAML11SubjectConfirmationType(); startElement = StaxParserUtil.getNextStartElement(xmlEventReader); String method = StaxParserUtil.getElementText(xmlEventReader); subjectConfirmationType.addConfirmationMethod(URI.create(method)); startElement = StaxParserUtil.getNextStartElement(xmlEventReader); SubjectConfirmationDataType subjectConfirmationData = parseSubjectConfirmationData(xmlEventReader); subjectConfirmationType.setSubjectConfirmationData(subjectConfirmationData); } else if (startTag.equals(JBossSAMLConstants.KEY_INFO.get())) { Element keyInfo = StaxParserUtil.getDOMElement(xmlEventReader); subjectConfirmationType.setKeyInfo(keyInfo); } else throw logger.parserUnknownTag(startTag, startElement.getLocation());
public void write(SAML11SubjectConfirmationType confirmation) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.SUBJECT_CONFIRMATION.get(), SAML11Constants.ASSERTION_11_NSURI); List<URI> confirmationMethods = confirmation.getConfirmationMethod(); if (confirmationMethods != null) { for (URI confirmationMethod : confirmationMethods) { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, SAML11Constants.CONFIRMATION_METHOD, SAML11Constants.ASSERTION_11_NSURI); StaxUtil.writeCharacters(writer, confirmationMethod.toString()); StaxUtil.writeEndElement(writer); } } Element keyInfo = confirmation.getKeyInfo(); if (keyInfo != null) { StaxUtil.writeDOMElement(writer, keyInfo); } Object subjectConfirmationData = confirmation.getSubjectConfirmationData(); if (subjectConfirmationData != null) { writeSubjectConfirmationData(subjectConfirmationData); } StaxUtil.writeEndElement(writer); StaxUtil.flush(writer); }
confirmationMethod = SAMLUtil.SAML11_BEARER_URI; SAML11SubjectConfirmationType subjectConfirmation = new SAML11SubjectConfirmationType(); subjectConfirmation.addConfirmationMethod(URI.create(confirmationMethod));
confirmationMethod = SAMLUtil.SAML11_BEARER_URI; SAML11SubjectConfirmationType subjectConfirmation = new SAML11SubjectConfirmationType(); subjectConfirmation.addConfirmationMethod(URI.create(confirmationMethod));
SAML11SubjectConfirmationType subjectConfirmationType = new SAML11SubjectConfirmationType(); startElement = StaxParserUtil.getNextStartElement(xmlEventReader); String method = StaxParserUtil.getElementText(xmlEventReader); subjectConfirmationType.addConfirmationMethod(URI.create(method)); } else if (startTag.equals(JBossSAMLConstants.SUBJECT_CONFIRMATION_DATA.get())) { startElement = StaxParserUtil.getNextStartElement(xmlEventReader); SubjectConfirmationDataType subjectConfirmationData = parseSubjectConfirmationData(xmlEventReader); subjectConfirmationType.setSubjectConfirmationData(subjectConfirmationData); } else if (startTag.equals(JBossSAMLConstants.KEY_INFO.get())) { Element keyInfo = StaxParserUtil.getDOMElement(xmlEventReader); subjectConfirmationType.setKeyInfo(keyInfo); } else throw logger.parserUnknownTag(startTag, startElement.getLocation());
public void write(SAML11SubjectConfirmationType confirmation) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.SUBJECT_CONFIRMATION.get(), SAML11Constants.ASSERTION_11_NSURI); List<URI> confirmationMethods = confirmation.getConfirmationMethod(); if (confirmationMethods != null) { for (URI confirmationMethod : confirmationMethods) { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, SAML11Constants.CONFIRMATION_METHOD, SAML11Constants.ASSERTION_11_NSURI); StaxUtil.writeCharacters(writer, confirmationMethod.toString()); StaxUtil.writeEndElement(writer); } } Element keyInfo = confirmation.getKeyInfo(); if (keyInfo != null) { StaxUtil.writeDOMElement(writer, keyInfo); } Object subjectConfirmationData = confirmation.getSubjectConfirmationData(); if (subjectConfirmationData != null) { writeSubjectConfirmationData(subjectConfirmationData); } StaxUtil.writeEndElement(writer); StaxUtil.flush(writer); }
confirmationMethod = SAMLUtil.SAML11_BEARER_URI; SAML11SubjectConfirmationType subjectConfirmation = new SAML11SubjectConfirmationType(); subjectConfirmation.addConfirmationMethod(URI.create(confirmationMethod));
SAML11SubjectConfirmationType subjectConfirmationType = new SAML11SubjectConfirmationType(); startElement = StaxParserUtil.getNextStartElement(xmlEventReader); String method = StaxParserUtil.getElementText(xmlEventReader); subjectConfirmationType.addConfirmationMethod(URI.create(method)); } else if (startTag.equals(JBossSAMLConstants.SUBJECT_CONFIRMATION_DATA.get())) { startElement = StaxParserUtil.getNextStartElement(xmlEventReader); SubjectConfirmationDataType subjectConfirmationData = parseSubjectConfirmationData(xmlEventReader); subjectConfirmationType.setSubjectConfirmationData(subjectConfirmationData); } else if (startTag.equals(JBossSAMLConstants.KEY_INFO.get())) { Element keyInfo = StaxParserUtil.getDOMElement(xmlEventReader); subjectConfirmationType.setKeyInfo(keyInfo); } else throw logger.parserUnknownTag(startTag, startElement.getLocation());
public void write(SAML11SubjectConfirmationType confirmation) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.SUBJECT_CONFIRMATION.get(), SAML11Constants.ASSERTION_11_NSURI); List<URI> confirmationMethods = confirmation.getConfirmationMethod(); if (confirmationMethods != null) { for (URI confirmationMethod : confirmationMethods) { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, SAML11Constants.CONFIRMATION_METHOD, SAML11Constants.ASSERTION_11_NSURI); StaxUtil.writeCharacters(writer, confirmationMethod.toString()); StaxUtil.writeEndElement(writer); } } Element keyInfo = confirmation.getKeyInfo(); if (keyInfo != null) { StaxUtil.writeDOMElement(writer, keyInfo); } Object subjectConfirmationData = confirmation.getSubjectConfirmationData(); if (subjectConfirmationData != null) { writeSubjectConfirmationData(subjectConfirmationData); } StaxUtil.writeEndElement(writer); StaxUtil.flush(writer); }
confirmationMethod = SAMLUtil.SAML11_BEARER_URI; SAML11SubjectConfirmationType subjectConfirmation = new SAML11SubjectConfirmationType(); subjectConfirmation.addConfirmationMethod(URI.create(confirmationMethod));
throws ParsingException SAML11SubjectConfirmationType subjectConfirmationType = new SAML11SubjectConfirmationType(); subjectConfirmationType.addConfirmationMethod(URI.create(method)); subjectConfirmationType.setSubjectConfirmationData(subjectConfirmationData); subjectConfirmationType.setKeyInfo(keyInfo);
public void write(SAML11SubjectConfirmationType confirmation) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.SUBJECT_CONFIRMATION.get(), SAML11Constants.ASSERTION_11_NSURI); List<URI> confirmationMethods = confirmation.getConfirmationMethod(); if (confirmationMethods != null) { for (URI confirmationMethod : confirmationMethods) { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, SAML11Constants.CONFIRMATION_METHOD, SAML11Constants.ASSERTION_11_NSURI); StaxUtil.writeCharacters(writer, confirmationMethod.toString()); StaxUtil.writeEndElement(writer); } } Element keyInfo = confirmation.getKeyInfo(); if (keyInfo != null) { StaxUtil.writeDOMElement(writer, keyInfo); } Object subjectConfirmationData = confirmation.getSubjectConfirmationData(); if (subjectConfirmationData != null) { writeSubjectConfirmationData(subjectConfirmationData); } StaxUtil.writeEndElement(writer); StaxUtil.flush(writer); }
confirmationMethod = SAMLUtil.SAML11_BEARER_URI; SAML11SubjectConfirmationType subjectConfirmation = new SAML11SubjectConfirmationType(); subjectConfirmation.addConfirmationMethod(URI.create(confirmationMethod));
throws ParsingException SAML11SubjectConfirmationType subjectConfirmationType = new SAML11SubjectConfirmationType(); subjectConfirmationType.addConfirmationMethod(URI.create(method)); subjectConfirmationType.setSubjectConfirmationData(subjectConfirmationData); subjectConfirmationType.setKeyInfo(keyInfo);
public void write(SAML11SubjectConfirmationType confirmation) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.SUBJECT_CONFIRMATION.get(), SAML11Constants.ASSERTION_11_NSURI); List<URI> confirmationMethods = confirmation.getConfirmationMethod(); if (confirmationMethods != null) { for (URI confirmationMethod : confirmationMethods) { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, SAML11Constants.CONFIRMATION_METHOD, SAML11Constants.ASSERTION_11_NSURI); StaxUtil.writeCharacters(writer, confirmationMethod.toString()); StaxUtil.writeEndElement(writer); } } Element keyInfo = confirmation.getKeyInfo(); if (keyInfo != null) { StaxUtil.writeDOMElement(writer, keyInfo); } Object subjectConfirmationData = confirmation.getSubjectConfirmationData(); if (subjectConfirmationData != null) { writeSubjectConfirmationData(subjectConfirmationData); } StaxUtil.writeEndElement(writer); StaxUtil.flush(writer); }