private void readTrustedRecordsFromResource() {
        this.storage = new LinkedHashMap<>();
        if (ResourceUtils.doesResourceExist(location)) {
            FunctionUtils.doUnchecked(__ -> {
                try (val reader = new InputStreamReader(location.getInputStream(), StandardCharsets.UTF_8)) {
                    val personList = new TypeReference<Map<String, MultifactorAuthenticationTrustRecord>>() {
                    };
                    this.storage = MAPPER.readValue(JsonValue.readHjson(reader).toString(), personList);
                }
            });
        }
    }
This is {@link JsonMultifactorAuthenticationTrustStorage}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-trusted-mfa-core/src/main/java/org/apereo/cas/trusted/authentication/storage/JsonMultifactorAuthenticationTrustStorage.java