@Override
    public Collection<CredentialRegistration> getRegistrationsByUsername(final String username) {
        val storage = readFromJsonRepository();
        return storage.containsKey(username.trim().toLowerCase(Locale.ENGLISH))
            ? storage.get(username.trim().toLowerCase(Locale.ENGLISH))
            : new HashSet<>();
    }
This is {@link JsonResourceWebAuthnCredentialRepository}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-webauthn-core/src/main/java/org/apereo/cas/webauthn/storage/JsonResourceWebAuthnCredentialRepository.java