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

@param context      the context
@param authnInstant the authn instant
@param sessionIndex the session index
@return the authn statement
support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java