public static <T> Optional<T> getMultifactorAuthenticationTrustRecord(final RequestContext context, final Class<T> clazz) {
        return Optional.ofNullable(context.getFlowScope().get(CasWebflowConstants.VAR_ID_MFA_TRUST_RECORD, clazz));
    }
Gets multifactor authentication trust record.

@param <T>     the type parameter
@param context the context
@param clazz   the clazz
@return the multifactor authentication trust record
support/cas-server-support-trusted-mfa-core/src/main/java/org/apereo/cas/trusted/util/MultifactorAuthenticationTrustUtils.java