@Override
    public OneTimeTokenAccount get(final String username, final long id) {
        return get(username).stream().filter(acct -> acct.getId() == id).findFirst().orElse(null);
    }
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