package com.ufund.api.ufundapi.persistence; import com.ufund.api.ufundapi.model.UserAuth; import java.io.IOException; public interface UserAuthDAO { /** * Get a user authentication profile * @param key The auth key * @return The authentication profile or null if there was none */ UserAuth getUserAuth(String key); /** * Add a user authentication profile * @param userAuth The user auth profile to add * @return True if it was successful * @throws IOException On any file writing error */ boolean addUserAuth(UserAuth userAuth) throws IOException; }