@Override
    public Collection<? extends OneTimeTokenAccount> get(final String username) {
        val entry = locateLdapEntryFor(username);
        if (entry != null) {
            val accounts = entry.getAttribute(ldapProperties.getAccountAttributeName());
            if (accounts != null) {
                LOGGER.debug("Located accounts for [{}] at attribute [{}]", username,
                    ldapProperties.getAccountAttributeName());
                return accounts.getStringValues()
                    .stream()
                    .map(LdapGoogleAuthenticatorTokenCredentialRepository::mapFromJson)
                    .filter(Objects::nonNull)
                    .flatMap(List::stream)
                    .map(this::decode)
                    .collect(Collectors.toList());
            }
        }
        return new ArrayList<>();
    }
This is {@link LdapGoogleAuthenticatorTokenCredentialRepository}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-gauth-ldap/src/main/java/org/apereo/cas/gauth/credential/LdapGoogleAuthenticatorTokenCredentialRepository.java