public void write(SAML11NameIdentifierType nameid) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, SAML11Constants.NAME_IDENTIFIER, SAML11Constants.ASSERTION_11_NSURI); URI format = nameid.getFormat(); if (format != null) { StaxUtil.writeAttribute(writer, SAML11Constants.FORMAT, format.toString()); } String nameQualifier = nameid.getNameQualifier(); if (StringUtil.isNotNull(nameQualifier)) { StaxUtil.writeAttribute(writer, SAML11Constants.NAME_QUALIFIER, nameQualifier); } StaxUtil.writeCharacters(writer, nameid.getValue()); StaxUtil.writeEndElement(writer); StaxUtil.flush(writer); }
SAML11NameIdentifierType nameID = new SAML11NameIdentifierType(val); Attribute formatAtt = peekedElement.getAttributeByName(new QName(SAML11Constants.FORMAT)); if (formatAtt != null) nameID.setFormat(URI.create(StaxParserUtil.getAttributeValue(formatAtt))); if (nameQAtt != null) nameID.setNameQualifier(StaxParserUtil.getAttributeValue(nameQAtt));
SAML11NameIdentifierType nameId = new SAML11NameIdentifierType(subjectName); nameId.setFormat(URI.create(SAML11Constants.FORMAT_UNSPECIFIED)); SAML11SubjectType subject = new SAML11SubjectType(); subject.setChoice(new SAML11SubjectType.SAML11SubjectTypeChoice(nameId));
SAML11AuthenticationStatementType subStat = (SAML11AuthenticationStatementType) statement; SAML11SubjectType subject = subStat.getSubject(); username = subject.getChoice().getNameID().getValue();
saml11Protocol.setIssuerID(getIdentityURL()); SAML11SubjectType subject = new SAML11SubjectType(); SAML11SubjectType.SAML11SubjectTypeChoice subjectChoice = new SAML11SubjectType.SAML11SubjectTypeChoice(new SAML11NameIdentifierType( userPrincipal.getName())); subject.setChoice(subjectChoice);
SAML11NameIdentifierType nameId = new SAML11NameIdentifierType(subjectName); nameId.setFormat(URI.create(SAML11Constants.FORMAT_UNSPECIFIED)); SAML11SubjectType subject = new SAML11SubjectType(); subject.setChoice(new SAML11SubjectType.SAML11SubjectTypeChoice(nameId));
SAML11AuthenticationStatementType subStat = (SAML11AuthenticationStatementType) statement; SAML11SubjectType subject = subStat.getSubject(); username = subject.getChoice().getNameID().getValue();
saml11Protocol.setIssuerID(getIdentityURL()); SAML11SubjectType subject = new SAML11SubjectType(); SAML11SubjectType.SAML11SubjectTypeChoice subjectChoice = new SAML11SubjectType.SAML11SubjectTypeChoice(new SAML11NameIdentifierType( userPrincipal.getName())); subject.setChoice(subjectChoice);
public void write(SAML11NameIdentifierType nameid) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, SAML11Constants.NAME_IDENTIFIER, SAML11Constants.ASSERTION_11_NSURI); URI format = nameid.getFormat(); if (format != null) { StaxUtil.writeAttribute(writer, SAML11Constants.FORMAT, format.toString()); } String nameQualifier = nameid.getNameQualifier(); if (StringUtil.isNotNull(nameQualifier)) { StaxUtil.writeAttribute(writer, SAML11Constants.NAME_QUALIFIER, nameQualifier); } StaxUtil.writeCharacters(writer, nameid.getValue()); StaxUtil.writeEndElement(writer); StaxUtil.flush(writer); }
peekedElement = StaxParserUtil.getNextStartElement(xmlEventReader); String val = StaxParserUtil.getElementText(xmlEventReader); SAML11NameIdentifierType nameID = new SAML11NameIdentifierType(val); Attribute formatAtt = peekedElement.getAttributeByName(new QName(SAML11Constants.FORMAT)); if (formatAtt != null) { nameID.setFormat(URI.create(StaxParserUtil.getAttributeValue(formatAtt))); nameID.setNameQualifier(StaxParserUtil.getAttributeValue(nameQAtt));
SAML11NameIdentifierType nameId = new SAML11NameIdentifierType(subjectName); nameId.setFormat(URI.create(SAML11Constants.FORMAT_UNSPECIFIED)); SAML11SubjectType subject = new SAML11SubjectType(); subject.setChoice(new SAML11SubjectType.SAML11SubjectTypeChoice(nameId));
SAML11AuthenticationStatementType subStat = (SAML11AuthenticationStatementType) statement; SAML11SubjectType subject = subStat.getSubject(); principal = new SerializablePrincipal(subject.getChoice().getNameID().getValue());
saml11Protocol.setIssuerID(getIdentityURL()); SAML11SubjectType subject = new SAML11SubjectType(); SAML11SubjectType.SAML11SubjectTypeChoice subjectChoice = new SAML11SubjectType.SAML11SubjectTypeChoice(new SAML11NameIdentifierType( userPrincipal.getName())); subject.setChoice(subjectChoice);
public void write(SAML11NameIdentifierType nameid) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, SAML11Constants.NAME_IDENTIFIER, SAML11Constants.ASSERTION_11_NSURI); URI format = nameid.getFormat(); if (format != null) { StaxUtil.writeAttribute(writer, SAML11Constants.FORMAT, format.toString()); } String nameQualifier = nameid.getNameQualifier(); if (StringUtil.isNotNull(nameQualifier)) { StaxUtil.writeAttribute(writer, SAML11Constants.NAME_QUALIFIER, nameQualifier); } StaxUtil.writeCharacters(writer, nameid.getValue()); StaxUtil.writeEndElement(writer); StaxUtil.flush(writer); }
SAML11NameIdentifierType nameID = new SAML11NameIdentifierType(val); Attribute formatAtt = peekedElement.getAttributeByName(new QName(SAML11Constants.FORMAT)); if (formatAtt != null) nameID.setFormat(URI.create(StaxParserUtil.getAttributeValue(formatAtt))); if (nameQAtt != null) nameID.setNameQualifier(StaxParserUtil.getAttributeValue(nameQAtt));
SAML11NameIdentifierType nameId = new SAML11NameIdentifierType(subjectName); nameId.setFormat(URI.create(SAML11Constants.FORMAT_UNSPECIFIED)); SAML11SubjectType subject = new SAML11SubjectType(); subject.setChoice(new SAML11SubjectType.SAML11SubjectTypeChoice(nameId));
SAML11AuthenticationStatementType subStat = (SAML11AuthenticationStatementType) statement; SAML11SubjectType subject = subStat.getSubject(); principal = new SerializablePrincipal(subject.getChoice().getNameID().getValue());
saml11Protocol.setIssuerID(getIdentityURL()); SAML11SubjectType subject = new SAML11SubjectType(); SAML11SubjectTypeChoice subjectChoice = new SAML11SubjectTypeChoice(new SAML11NameIdentifierType( userPrincipal.getName())); subject.setChoice(subjectChoice);
public void write(SAML11NameIdentifierType nameid) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, SAML11Constants.NAME_IDENTIFIER, SAML11Constants.ASSERTION_11_NSURI); URI format = nameid.getFormat(); if (format != null) { StaxUtil.writeAttribute(writer, SAML11Constants.FORMAT, format.toString()); } String nameQualifier = nameid.getNameQualifier(); if (StringUtil.isNotNull(nameQualifier)) { StaxUtil.writeAttribute(writer, SAML11Constants.NAME_QUALIFIER, nameQualifier); } StaxUtil.writeCharacters(writer, nameid.getValue()); StaxUtil.writeEndElement(writer); StaxUtil.flush(writer); }
peekedElement = StaxParserUtil.getNextStartElement(xmlEventReader); String val = StaxParserUtil.getElementText(xmlEventReader); SAML11NameIdentifierType nameID = new SAML11NameIdentifierType(val); Attribute formatAtt = peekedElement.getAttributeByName(new QName(SAML11Constants.FORMAT)); if (formatAtt != null) { nameID.setFormat(URI.create(StaxParserUtil.getAttributeValue(formatAtt))); nameID.setNameQualifier(StaxParserUtil.getAttributeValue(nameQAtt));