String samlSubject = ((NameIDType) samlSubjectType.getSubType().getBaseID()).getValue();
/** * <p> * Creates a {@code SubjectType} object with the specified values. * </p> * * @param nameID the identifier of the subject. * @param confirmation the {@code SubjectConfirmationType} that is used to establish the correspondence between the * subject * and claims of SAML statements. * * @return the constructed {@code SubjectType} instance. */ public static SubjectType createSubject(NameIDType nameID, SubjectConfirmationType confirmation) { SubjectType subject = new SubjectType(); if (nameID != null) { SubjectType.STSubType subType = new SubjectType.STSubType(); subType.addConfirmation(confirmation); subType.addBaseID(nameID); subject.setSubType(subType); } return subject; }
SubjectType subjectType = new SubjectType(); subjectType.setSubType(subType); subjectType.addConfirmation(subjectConfirmation);
StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.SUBJECT.get(), ASSERTION_NSURI.get()); STSubType subType = subject.getSubType(); if (subType != null) { BaseIDAbstractType baseID = subType.getBaseID(); List<SubjectConfirmationType> subjectConfirmations = subject.getConfirmation(); if (subjectConfirmations != null) { for (SubjectConfirmationType subjectConfirmationType : subjectConfirmations) {
SubjectType subjectType = new SubjectType(); subjectType.setSubType(subType); subjectType.addConfirmation(subjectConfirmation);
StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.SUBJECT.get(), ASSERTION_NSURI.get()); STSubType subType = subject.getSubType(); if (subType != null) { BaseIDAbstractType baseID = subType.getBaseID(); List<SubjectConfirmationType> subjectConfirmations = subject.getConfirmation(); if (subjectConfirmations != null) { for (SubjectConfirmationType subjectConfirmationType : subjectConfirmations) {
SubjectType subject = new SubjectType(); STSubType subType = new STSubType(); subType.addBaseID(nameID); subject.setSubType(subType); STSubType subType = new STSubType(); subType.setEncryptedID(new EncryptedElementType(domElement)); subject.setSubType(subType); subject.addConfirmation(subjectConfirmationType);
NameIDType nameID = (NameIDType) subject.getSubType().getBaseID();
/** * <p> * Creates a {@code SubjectType} object with the specified values. * </p> * * @param nameID the identifier of the subject. * @param confirmation the {@code SubjectConfirmationType} that is used to establish the correspondence between the * subject and claims of SAML statements. * @return the constructed {@code SubjectType} instance. */ public static SubjectType createSubject(NameIDType nameID, SubjectConfirmationType confirmation) { SubjectType subject = new SubjectType(); if (nameID != null) { SubjectType.STSubType subType = new SubjectType.STSubType(); subType.addConfirmation(confirmation); subType.addBaseID(nameID); subject.setSubType(subType); } return subject; }
STSubType subType = subject.getSubType(); if (subType != null) List<SubjectConfirmationType> subjectConfirmations = subject.getConfirmation(); if (subjectConfirmations != null)
SubjectType subject = new SubjectType(); STSubType subType = new STSubType(); subType.addBaseID(nameID); subject.setSubType(subType); STSubType subType = new STSubType(); subType.setEncryptedID(new EncryptedElementType(domElement)); subject.setSubType(subType); subject.addConfirmation(subjectConfirmationType);
NameIDType nameID = (NameIDType) subject.getSubType().getBaseID();
/** * <p> * Creates a {@code SubjectType} object with the specified values. * </p> * * @param nameID the identifier of the subject. * @param confirmation the {@code SubjectConfirmationType} that is used to establish the correspondence between the subject * and claims of SAML statements. * @return the constructed {@code SubjectType} instance. */ public static SubjectType createSubject(NameIDType nameID, SubjectConfirmationType confirmation) { SubjectType subject = new SubjectType(); if (nameID != null) { SubjectType.STSubType subType = new SubjectType.STSubType(); subType.addConfirmation(confirmation); subType.addBaseID(nameID); subject.setSubType(subType); } return subject; }
StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.SUBJECT.get(), ASSERTION_NSURI.get()); STSubType subType = subject.getSubType(); if (subType != null) { BaseIDAbstractType baseID = subType.getBaseID(); List<SubjectConfirmationType> subjectConfirmations = subject.getConfirmation(); if (subjectConfirmations != null) { for (SubjectConfirmationType subjectConfirmationType : subjectConfirmations) {
SubjectType subjectType = new SubjectType(); subjectType.setSubType(subType); subjectType.addConfirmation(subjectConfirmation);
NameIDType nameID = (NameIDType) subject.getSubType().getBaseID();
/** * <p> * Creates a {@code SubjectType} object with the specified values. * </p> * * @param nameID the identifier of the subject. * @param confirmation the {@code SubjectConfirmationType} that is used to establish the correspondence between the * subject and claims of SAML statements. * @return the constructed {@code SubjectType} instance. */ public static SubjectType createSubject(NameIDType nameID, SubjectConfirmationType confirmation) { SubjectType subject = new SubjectType(); if (nameID != null) { SubjectType.STSubType subType = new SubjectType.STSubType(); subType.addConfirmation(confirmation); subType.addBaseID(nameID); subject.setSubType(subType); } return subject; }
STSubType subType = subject.getSubType(); if (subType != null) List<SubjectConfirmationType> subjectConfirmations = subject.getConfirmation(); if (subjectConfirmations != null)
StaxParserUtil.getNextEvent(xmlEventReader); SubjectType subject = new SubjectType(); STSubType subType = new STSubType(); subType.addBaseID(nameID); subject.setSubType(subType); } else if (JBossSAMLConstants.BASEID.get().equalsIgnoreCase(tag)) { throw new ParsingException(ErrorCodes.UNSUPPORTED_TYPE + JBossSAMLConstants.BASEID.get()); STSubType subType = new STSubType(); subType.setEncryptedID(new EncryptedElementType(domElement)); subject.setSubType(subType); } else if (JBossSAMLConstants.SUBJECT_CONFIRMATION.get().equalsIgnoreCase(tag)) { StartElement subjectConfirmationElement = StaxParserUtil.getNextStartElement(xmlEventReader); subject.addConfirmation(subjectConfirmationType); } else throw logger.parserUnknownTag(tag, peekedElement.getLocation());
NameIDType nameID = (NameIDType) subject.getSubType().getBaseID();