SAML11Constants.ASSERTION_11_NSURI); XMLGregorianCalendar authnInstant = authnStatement.getAuthenticationInstant(); if (authnInstant != null) { StaxUtil.writeAttribute(writer, SAML11Constants.AUTHENTICATION_INSTANT, authnInstant.toString()); URI authMethod = authnStatement.getAuthenticationMethod(); if (authMethod != null) { StaxUtil.writeAttribute(writer, SAML11Constants.AUTHENTICATION_METHOD, authMethod.toString()); SAML11SubjectType subject = authnStatement.getSubject(); if (subject != null) write(subject); SAML11SubjectLocalityType locality = authnStatement.getSubjectLocality(); if (locality != null) write(locality); List<SAML11AuthorityBindingType> authorities = authnStatement.getAuthorityBindingType(); for (SAML11AuthorityBindingType authority : authorities) { write(authority);
throw logger.parserRequiredAttribute(SAML11Constants.AUTHENTICATION_INSTANT); SAML11AuthenticationStatementType authStat = new SAML11AuthenticationStatementType(URI.create(StaxParserUtil .getAttributeValue(authMethod)), XMLTimeUtil.parse(StaxParserUtil.getAttributeValue(authInstant))); subStat.setSubject(subject); authStat.setSubject(subject); } else if (JBossSAMLConstants.SUBJECT_LOCALITY.get().equals(tag)) { startElement = StaxParserUtil.getNextStartElement(xmlEventReader); subjectLocalityType.setDnsAddress(StaxParserUtil.getAttributeValue(dns)); authStat.setSubjectLocality(subjectLocalityType); StaxParserUtil.validate(StaxParserUtil.getNextEndElement(xmlEventReader), JBossSAMLConstants.SUBJECT_LOCALITY.get()); authStat.add(authorityBinding); } else throw logger.parserUnknownTag("", startElement.getLocation());
SAML11AuthenticationStatementType stat = new SAML11AuthenticationStatementType(authenticationMethod, issueInstant); stat.setSubject(subject); assertionType.add(stat);
if (statement instanceof SAML11AuthenticationStatementType) { SAML11AuthenticationStatementType subStat = (SAML11AuthenticationStatementType) statement; SAML11SubjectType subject = subStat.getSubject(); username = subject.getChoice().getNameID().getValue();
throw new ParsingException(REQD_ATTRIBUTE + SAML11Constants.AUTHENTICATION_INSTANT); SAML11AuthenticationStatementType authStat = new SAML11AuthenticationStatementType(URI.create(StaxParserUtil .getAttributeValue(authMethod)), XMLTimeUtil.parse(StaxParserUtil.getAttributeValue(authInstant))); subStat.setSubject(subject); authStat.setSubject(subject); authStat.setSubjectLocality(subjectLocalityType); StaxParserUtil.validate(StaxParserUtil.getNextEndElement(xmlEventReader), JBossSAMLConstants.SUBJECT_LOCALITY.get()); authStat.add(authorityBinding);
SAML11AuthenticationStatementType stat = new SAML11AuthenticationStatementType(authenticationMethod, issueInstant); stat.setSubject(subject); assertionType.add(stat);
if (statement instanceof SAML11AuthenticationStatementType) { SAML11AuthenticationStatementType subStat = (SAML11AuthenticationStatementType) statement; SAML11SubjectType subject = subStat.getSubject(); username = subject.getChoice().getNameID().getValue();
SAML11Constants.ASSERTION_11_NSURI); XMLGregorianCalendar authnInstant = authnStatement.getAuthenticationInstant(); if (authnInstant != null) { StaxUtil.writeAttribute(writer, SAML11Constants.AUTHENTICATION_INSTANT, authnInstant.toString()); URI authMethod = authnStatement.getAuthenticationMethod(); if (authMethod != null) { StaxUtil.writeAttribute(writer, SAML11Constants.AUTHENTICATION_METHOD, authMethod.toString()); SAML11SubjectType subject = authnStatement.getSubject(); if (subject != null) write(subject); SAML11SubjectLocalityType locality = authnStatement.getSubjectLocality(); if (locality != null) write(locality); List<SAML11AuthorityBindingType> authorities = authnStatement.getAuthorityBindingType(); for (SAML11AuthorityBindingType authority : authorities) { write(authority);
throw new ParsingException(REQD_ATTRIBUTE + SAML11Constants.AUTHENTICATION_INSTANT); SAML11AuthenticationStatementType authStat = new SAML11AuthenticationStatementType(URI.create(StaxParserUtil .getAttributeValue(authMethod)), XMLTimeUtil.parse(StaxParserUtil.getAttributeValue(authInstant))); subStat.setSubject(subject); authStat.setSubject(subject); authStat.setSubjectLocality(subjectLocalityType); StaxParserUtil.validate(StaxParserUtil.getNextEndElement(xmlEventReader), JBossSAMLConstants.SUBJECT_LOCALITY.get()); authStat.add(authorityBinding);
SAML11AuthenticationStatementType stat = new SAML11AuthenticationStatementType(authenticationMethod, issueInstant); stat.setSubject(subject); assertionType.add(stat);
if (statement instanceof SAML11AuthenticationStatementType) { SAML11AuthenticationStatementType subStat = (SAML11AuthenticationStatementType) statement; SAML11SubjectType subject = subStat.getSubject(); principal = new SerializablePrincipal(subject.getChoice().getNameID().getValue());
SAML11Constants.ASSERTION_11_NSURI); XMLGregorianCalendar authnInstant = authnStatement.getAuthenticationInstant(); if (authnInstant != null) URI authMethod = authnStatement.getAuthenticationMethod(); if (authMethod != null) SAML11SubjectType subject = authnStatement.getSubject(); if (subject != null) write(subject); SAML11SubjectLocalityType locality = authnStatement.getSubjectLocality(); if (locality != null) write(locality); List<SAML11AuthorityBindingType> authorities = authnStatement.getAuthorityBindingType(); for (SAML11AuthorityBindingType authority : authorities)
throw logger.parserRequiredAttribute(SAML11Constants.AUTHENTICATION_INSTANT); SAML11AuthenticationStatementType authStat = new SAML11AuthenticationStatementType(URI.create(StaxParserUtil .getAttributeValue(authMethod)), XMLTimeUtil.parse(StaxParserUtil.getAttributeValue(authInstant))); subStat.setSubject(subject); authStat.setSubject(subject); } else if (JBossSAMLConstants.SUBJECT_LOCALITY.get().equals(tag)) { startElement = StaxParserUtil.getNextStartElement(xmlEventReader); subjectLocalityType.setDnsAddress(StaxParserUtil.getAttributeValue(dns)); authStat.setSubjectLocality(subjectLocalityType); StaxParserUtil.validate(StaxParserUtil.getNextEndElement(xmlEventReader), JBossSAMLConstants.SUBJECT_LOCALITY.get()); authStat.add(authorityBinding); } else throw logger.parserUnknownTag("", startElement.getLocation());
SAML11AuthenticationStatementType stat = new SAML11AuthenticationStatementType(authenticationMethod, issueInstant); stat.setSubject(subject); assertionType.add(stat);
if (statement instanceof SAML11AuthenticationStatementType) { SAML11AuthenticationStatementType subStat = (SAML11AuthenticationStatementType) statement; SAML11SubjectType subject = subStat.getSubject(); principal = new SerializablePrincipal(subject.getChoice().getNameID().getValue());
SAML11Constants.ASSERTION_11_NSURI); XMLGregorianCalendar authnInstant = authnStatement.getAuthenticationInstant(); if (authnInstant != null) { StaxUtil.writeAttribute(writer, SAML11Constants.AUTHENTICATION_INSTANT, authnInstant.toString()); URI authMethod = authnStatement.getAuthenticationMethod(); if (authMethod != null) { StaxUtil.writeAttribute(writer, SAML11Constants.AUTHENTICATION_METHOD, authMethod.toString()); SAML11SubjectType subject = authnStatement.getSubject(); if (subject != null) write(subject); SAML11SubjectLocalityType locality = authnStatement.getSubjectLocality(); if (locality != null) write(locality); List<SAML11AuthorityBindingType> authorities = authnStatement.getAuthorityBindingType(); for (SAML11AuthorityBindingType authority : authorities) { write(authority);
throw logger.parserRequiredAttribute(SAML11Constants.AUTHENTICATION_INSTANT); SAML11AuthenticationStatementType authStat = new SAML11AuthenticationStatementType(URI.create(StaxParserUtil .getAttributeValue(authMethod)), XMLTimeUtil.parse(StaxParserUtil.getAttributeValue(authInstant))); subStat.setSubject(subject); authStat.setSubject(subject); } else if (JBossSAMLConstants.SUBJECT_LOCALITY.get().equals(tag)) { startElement = StaxParserUtil.getNextStartElement(xmlEventReader); subjectLocalityType.setDnsAddress(StaxParserUtil.getAttributeValue(dns)); authStat.setSubjectLocality(subjectLocalityType); StaxParserUtil.validate(StaxParserUtil.getNextEndElement(xmlEventReader), JBossSAMLConstants.SUBJECT_LOCALITY.get()); authStat.add(authorityBinding); } else throw logger.parserUnknownTag("", startElement.getLocation());
SAML11AuthenticationStatementType stat = new SAML11AuthenticationStatementType(authenticationMethod, issueInstant); stat.setSubject(subject); assertionType.add(stat);
if (statement instanceof SAML11AuthenticationStatementType) { SAML11AuthenticationStatementType subStat = (SAML11AuthenticationStatementType) statement; SAML11SubjectType subject = subStat.getSubject(); username = subject.getChoice().getNameID().getValue();
SAML11Constants.ASSERTION_11_NSURI); XMLGregorianCalendar authnInstant = authnStatement.getAuthenticationInstant(); if (authnInstant != null) URI authMethod = authnStatement.getAuthenticationMethod(); if (authMethod != null) SAML11SubjectType subject = authnStatement.getSubject(); if (subject != null) write(subject); SAML11SubjectLocalityType locality = authnStatement.getSubjectLocality(); if (locality != null) write(locality); List<SAML11AuthorityBindingType> authorities = authnStatement.getAuthorityBindingType(); for (SAML11AuthorityBindingType authority : authorities)