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

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