public AuthnStatement newAuthnStatement ( final String contextClassRef , final ZonedDateTime authnInstant , final String sessionIndex ) { LOGGER . trace ( "Building authentication statement with context class ref [{}] @ [{}] with index [{}]" , contextClassRef , authnInstant , sessionIndex ) ; val stmt = newSamlObject ( AuthnStatement . class ) ; val ctx = newSamlObject ( AuthnContext . class ) ; val classRef = newSamlObject ( AuthnContextClassRef . class ) ; classRef . setAuthnContextClassRef ( contextClassRef ) ; ctx . setAuthnContextClassRef ( classRef ) ; stmt . setAuthnContext ( ctx ) ; stmt . setAuthnInstant ( DateTimeUtils . dateTimeOf ( authnInstant ) ) ; stmt . setSessionIndex ( sessionIndex ) ; return stmt ; }
New authn statement .