blob: bebbff02a6e8b6d624c2079e4a9536abde88bcac (
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
|
package auth;
import org.openslx.bwlp.thrift.iface.UserInfo;
import edu.kit.scc.dei.ecplean.ECPAuthenticationException;
/**
* @author Jonathan Bauer
*
*/
public interface BaseAuthenticator {
/**
* Callback interface to the login to be called after a login
* Note that this will be called after every login, independent
* of the success of the operation. This way the GUI can show a
* corresponding message to the user.
*/
interface AuthenticatorCallback {
void postLogin(UserInfo user);
}
/**
* Definition of the generic login method.
*
* @param username The username as String.
* @param password The password as String.
* @param callback The callback function to be called after the login
* @throws ECPAuthenticationException
*/
void login(String username, String password, AuthenticatorCallback callback) throws ECPAuthenticationException;
}
|