1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 package org.talika.tarsis.security;
24
25 import org.talika.tarsis.service.AbstractService;
26
27 /**
28 * Base implementation of <code>Authenticator</code> interface.<br>
29 * <br>
30 * Authenticator plugs in system like a service by extending <code>AbstractService</code>.
31 *
32 * @author Jose M. Palomar
33 * @version $Revision: 124 $
34 */
35 public abstract class AuthenticatorService extends AbstractService implements Authenticator {
36
37
38
39
40
41
42 /**
43 * creates a new <code>AuthenticatorService</code>.
44 */
45 public AuthenticatorService() {
46 }
47
48
49 /**
50 * Checks if given user and password are correct.
51 *
52 * @param user String user name.
53 * @param password String user password.
54 * @return SecuritySession security session created from given user and password.
55 * @throws AuthenticationFailedException if user and/or password aren't correct.
56 * @see org.talika.tarsis.security.Authenticator#login(String, String)
57 */
58 public abstract SecuritySession login(String user, String password)
59 throws AuthenticationFailedException;
60
61 }