/** * <p> * Creates a {@code SubjectConfirmationType} object with the specified values. * </p> * * @param nameID the identifier of the confirmation. * @param confirmationMethod a {@code String} representing the confirmation method. * @param keyInfoData the {@code KeyInfoConfirmationDataType} instance that contains the proof of possession key. * @return the constructed {@code SubjectConfirmationType} instance. */ public static SubjectConfirmationType createSubjectConfirmation(NameIDType nameID, String confirmationMethod, KeyInfoConfirmationDataType keyInfoData) { SubjectConfirmationType subjectConfirmation = new SubjectConfirmationType(); subjectConfirmation.setNameID(nameID); subjectConfirmation.setMethod(confirmationMethod); subjectConfirmation.setSubjectConfirmationData(keyInfoData); return subjectConfirmation; }
/** * Create a Subject confirmation type given the method * @param method * @return */ public static SubjectConfirmationType createSubjectConfirmation(String method) { SubjectConfirmationType sct = new SubjectConfirmationType(); sct.setMethod(method); return sct; }
subjectType.setSubType(subType); SubjectConfirmationType subjectConfirmation = new SubjectConfirmationType(); subjectConfirmation.setMethod(subjectConfirmationMethod); subjectConfirmationData.setNotOnOrAfter(issueInstant); subjectConfirmation.setSubjectConfirmationData(subjectConfirmationData);
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); }
if (confirmation.getMethod().equals(SamlConstants.CONFIRMATION_METHOD_BEARER)) SubjectConfirmationDataType confirmationData = confirmation.getSubjectConfirmationData();
subjectType.setSubType(subType); SubjectConfirmationType subjectConfirmation = new SubjectConfirmationType(); subjectConfirmation.setMethod(subjectConfirmationMethod); subjectConfirmationData.setNotOnOrAfter(issueInstant); subjectConfirmation.setSubjectConfirmationData(subjectConfirmationData);
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); }
/** * Create a Subject confirmation type given the method * * @param method * * @return */ public static SubjectConfirmationType createSubjectConfirmation(String method) { SubjectConfirmationType sct = new SubjectConfirmationType(); sct.setMethod(method); return sct; }
/** * <p> * Creates a {@code SubjectConfirmationType} object with the specified values. * </p> * * @param nameID the identifier of the confirmation. * @param confirmationMethod a {@code String} representing the confirmation method. * @param keyInfoData the {@code KeyInfoConfirmationDataType} instance that contains the proof of possession key. * * @return the constructed {@code SubjectConfirmationType} instance. */ public static SubjectConfirmationType createSubjectConfirmation(NameIDType nameID, String confirmationMethod, KeyInfoConfirmationDataType keyInfoData) { SubjectConfirmationType subjectConfirmation = new SubjectConfirmationType(); subjectConfirmation.setNameID(nameID); subjectConfirmation.setMethod(confirmationMethod); subjectConfirmation.setSubjectConfirmationData(keyInfoData); return subjectConfirmation; }
subjectType.setSubType(subType); SubjectConfirmationType subjectConfirmation = new SubjectConfirmationType(); subjectConfirmation.setMethod(idp.getSubjectConfirmationMethod()); subjectConfirmation.setSubjectConfirmationData(subjectConfirmationData);
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); }
/** * Create a Subject confirmation type given the method * * @param method * * @return */ public static SubjectConfirmationType createSubjectConfirmation(String method) { SubjectConfirmationType sct = new SubjectConfirmationType(); sct.setMethod(method); return sct; }
/** * <p> * Creates a {@code SubjectConfirmationType} object with the specified values. * </p> * * @param nameID the identifier of the confirmation. * @param confirmationMethod a {@code String} representing the confirmation method. * @param keyInfoData the {@code KeyInfoConfirmationDataType} instance that contains the proof of possession key. * @return the constructed {@code SubjectConfirmationType} instance. */ public static SubjectConfirmationType createSubjectConfirmation(NameIDType nameID, String confirmationMethod, KeyInfoConfirmationDataType keyInfoData) { SubjectConfirmationType subjectConfirmation = new SubjectConfirmationType(); subjectConfirmation.setNameID(nameID); subjectConfirmation.setMethod(confirmationMethod); subjectConfirmation.setSubjectConfirmationData(keyInfoData); return subjectConfirmation; }
subjectType.setSubType(subType); SubjectConfirmationType subjectConfirmation = new SubjectConfirmationType(); subjectConfirmation.setMethod(idp.getSubjectConfirmationMethod()); subjectConfirmation.setSubjectConfirmationData(subjectConfirmationData);
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); }
/** * Create a Subject confirmation type given the method * @param method * @return */ public static SubjectConfirmationType createSubjectConfirmation(String method) { SubjectConfirmationType sct = new SubjectConfirmationType(); sct.setMethod(method); return sct; }
/** * <p> * Creates a {@code SubjectConfirmationType} object with the specified values. * </p> * * @param nameID the identifier of the confirmation. * @param confirmationMethod a {@code String} representing the confirmation method. * @param keyInfoData the {@code KeyInfoConfirmationDataType} instance that contains the proof of possession key. * @return the constructed {@code SubjectConfirmationType} instance. */ public static SubjectConfirmationType createSubjectConfirmation(NameIDType nameID, String confirmationMethod, KeyInfoConfirmationDataType keyInfoData) { SubjectConfirmationType subjectConfirmation = new SubjectConfirmationType(); subjectConfirmation.setNameID(nameID); subjectConfirmation.setMethod(confirmationMethod); subjectConfirmation.setSubjectConfirmationData(keyInfoData); return subjectConfirmation; }
subjectType.setSubType(subType); SubjectConfirmationType subjectConfirmation = new SubjectConfirmationType(); subjectConfirmation.setMethod(idp.getSubjectConfirmationMethod()); subjectConfirmation.setSubjectConfirmationData(subjectConfirmationData);
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); }
/** * Create a Subject confirmation type given the method * * @param method * @return */ public static SubjectConfirmationType createSubjectConfirmation(String method) { SubjectConfirmationType sct = new SubjectConfirmationType(); sct.setMethod(method); return sct; }