@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @Bean
    public MultifactorAuthenticationTrustStorage mfaTrustEngine(
        final CasConfigurationProperties casProperties,
        @Qualifier("mongoMfaTrustedAuthnTemplate")
        final MongoOperations mongoMfaTrustedAuthnTemplate,
        @Qualifier("mfaTrustRecordKeyGenerator")
        final MultifactorAuthenticationTrustRecordKeyGenerator keyGenerationStrategy,
        @Qualifier("mfaTrustCipherExecutor")
        final CipherExecutor mfaTrustCipherExecutor) {
        return new MongoDbMultifactorAuthenticationTrustStorage(
            casProperties.getAuthn().getMfa().getTrusted(), mfaTrustCipherExecutor,
            mongoMfaTrustedAuthnTemplate, keyGenerationStrategy);
    }
This is {@link CasMongoDbMultifactorAuthenticationTrustAutoConfiguration}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-trusted-mfa-mongo/src/main/java/org/apereo/cas/config/CasMongoDbMultifactorAuthenticationTrustAutoConfiguration.java