blob: 355aae4d7f6606f4b488e5ba257e9955482b3e90 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
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) throws IOException;
/**
* Add a user authentication profile
*
* @param userAuth The user auth profile to add
* @throws IOException Thrown on any file writing error
*/
void addUserAuth(UserAuth userAuth) throws IOException;
/**
* Remove a user authentication profile
*
* @param key The key of the user auth profile to remove
* @throws IOException Thrown on any file writing error
*/
void removeUserAuth(String key) throws IOException;
}
|