@Override
    public Set<? extends MultifactorAuthenticationTrustRecord> getAll() {
        val results = mongoTemplate.findAll(MultifactorAuthenticationTrustRecord.class,
            getTrustedDevicesMultifactorProperties().getMongo().getCollection());
        return new HashSet<>(results);
    }
This is {@link MongoDbMultifactorAuthenticationTrustStorage}.

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