@Override
    public Collection<CredentialRegistration> getRegistrationsByUsername(final String username) {
        val ldapProperties = getProperties().getAuthn().getMfa().getWebAuthn().getLdap();
        return Stream.ofNullable(locateLdapEntryFor(username))
            .filter(Objects::nonNull)
            .map(e -> e.getAttribute(ldapProperties.getAccountAttributeName()))
            .filter(Objects::nonNull)
            .map(attr -> attr.getStringValues()
                .stream()
                .filter(Objects::nonNull)
                .map(StringUtils::trim)
                .filter(StringUtils::isNotBlank)
                .map(record -> getCipherExecutor().decode(record))
                .filter(Objects::nonNull)
                .map(LdapWebAuthnCredentialRepository::mapFromJson)
                .filter(Objects::nonNull)
                .flatMap(List::stream)
                .collect(Collectors.toSet()))
            .flatMap(Set::stream)
            .collect(Collectors.toSet());
    }
This is {@link LdapWebAuthnCredentialRepository}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-webauthn-ldap/src/main/java/org/apereo/cas/webauthn/LdapWebAuthnCredentialRepository.java