@Override
    public Collection<? extends OneTimeTokenAccount> load() {
        return lock.tryLock(() -> accounts.values().stream().flatMap(List::stream).collect(Collectors.toList()));
    }
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