/** * Write an {@code AuthnStatementType} to stream * * @param authnStatement * @param out * @throws ProcessingException */ public void write(AuthnStatementType authnStatement) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.AUTHN_STATEMENT.get(), ASSERTION_NSURI.get()); XMLGregorianCalendar authnInstant = authnStatement.getAuthnInstant(); if (authnInstant != null) { StaxUtil.writeAttribute(writer, JBossSAMLConstants.AUTHN_INSTANT.get(), authnInstant.toString()); } AuthnContextType authnContext = authnStatement.getAuthnContext(); if (authnContext != null) write(authnContext); StaxUtil.writeEndElement(writer); StaxUtil.flush(writer); }
/** * Write an {@code AuthnStatementType} to stream * * @param authnStatement * @param out * @throws ProcessingException */ public void write(AuthnStatementType authnStatement) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.AUTHN_STATEMENT.get(), ASSERTION_NSURI.get()); XMLGregorianCalendar authnInstant = authnStatement.getAuthnInstant(); if (authnInstant != null) { StaxUtil.writeAttribute(writer, JBossSAMLConstants.AUTHN_INSTANT.get(), authnInstant.toString()); } AuthnContextType authnContext = authnStatement.getAuthnContext(); if (authnContext != null) write(authnContext); StaxUtil.writeEndElement(writer); StaxUtil.flush(writer); }
/** * Write an {@code AuthnStatementType} to stream * * @param authnStatement * @param out * @throws ProcessingException */ public void write(AuthnStatementType authnStatement) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.AUTHN_STATEMENT.get(), ASSERTION_NSURI.get()); XMLGregorianCalendar authnInstant = authnStatement.getAuthnInstant(); if (authnInstant != null) { StaxUtil.writeAttribute(writer, JBossSAMLConstants.AUTHN_INSTANT.get(), authnInstant.toString()); } String sessionIndex = authnStatement.getSessionIndex(); if (sessionIndex != null) { StaxUtil.writeAttribute(writer, JBossSAMLConstants.SESSION_INDEX.get(), sessionIndex); } AuthnContextType authnContext = authnStatement.getAuthnContext(); if (authnContext != null) write(authnContext); StaxUtil.writeEndElement(writer); StaxUtil.flush(writer); }
/** * Write an {@code AuthnStatementType} to stream * * @param authnStatement * @param out * * @throws ProcessingException */ public void write(AuthnStatementType authnStatement) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.AUTHN_STATEMENT.get(), ASSERTION_NSURI.get()); XMLGregorianCalendar authnInstant = authnStatement.getAuthnInstant(); if (authnInstant != null) { StaxUtil.writeAttribute(writer, JBossSAMLConstants.AUTHN_INSTANT.get(), authnInstant.toString()); } String sessionIndex = authnStatement.getSessionIndex(); if (sessionIndex != null) { StaxUtil.writeAttribute(writer, JBossSAMLConstants.SESSION_INDEX.get(), sessionIndex); } AuthnContextType authnContext = authnStatement.getAuthnContext(); if (authnContext != null) write(authnContext); StaxUtil.writeEndElement(writer); StaxUtil.flush(writer); }
/** * Write an {@code AuthnStatementType} to stream * * @param authnStatement * @param out * * @throws ProcessingException */ public void write(AuthnStatementType authnStatement) throws ProcessingException { StaxUtil.writeStartElement(writer, ASSERTION_PREFIX, JBossSAMLConstants.AUTHN_STATEMENT.get(), ASSERTION_NSURI.get()); XMLGregorianCalendar authnInstant = authnStatement.getAuthnInstant(); if (authnInstant != null) { StaxUtil.writeAttribute(writer, JBossSAMLConstants.AUTHN_INSTANT.get(), authnInstant.toString()); } String sessionIndex = authnStatement.getSessionIndex(); if (sessionIndex != null) { StaxUtil.writeAttribute(writer, JBossSAMLConstants.SESSION_INDEX.get(), sessionIndex); } AuthnContextType authnContext = authnStatement.getAuthnContext(); if (authnContext != null) write(authnContext); StaxUtil.writeEndElement(writer); StaxUtil.flush(writer); }