@Override
    public Collection<? extends OneTimeTokenAccount> get(final String userName) {
        return lock.tryLock(() -> {
            if (contains(userName)) {
                val account = accounts.get(userName.toLowerCase(Locale.ENGLISH).trim());
                return decode(account);
            }
            return new ArrayList<>();
        });
    }
This is {@link InMemoryGoogleAuthenticatorTokenCredentialRepository}.

@author Misagh Moayyed
@since 5.0.0
support/cas-server-support-gauth-core/src/main/java/org/apereo/cas/gauth/credential/InMemoryGoogleAuthenticatorTokenCredentialRepository.java