| 1 |
|
package org.itracker.services.authentication; |
| 2 |
|
|
| 3 |
|
import org.itracker.model.User; |
| 4 |
|
import org.itracker.services.UserService; |
| 5 |
|
import org.itracker.services.exceptions.AuthenticatorException; |
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
@author |
| 14 |
|
|
|
|
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 3 |
Complexity Density: 0.75 |
|
| 15 |
|
public class TestAuthenticator extends DefaultAuthenticator { |
| 16 |
|
|
| 17 |
|
|
| 18 |
|
@see |
| 19 |
|
|
| 20 |
|
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 21 |
0
|
public User checkLogin(String login, Object authentication, int authType, int reqSource)... |
| 22 |
|
throws AuthenticatorException { |
| 23 |
|
|
| 24 |
0
|
UserService userService = getUserService(); |
| 25 |
0
|
return (userService.getUserByLogin("admin")); |
| 26 |
|
|
| 27 |
|
} |
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
|
|
| 32 |
|
@see |
| 33 |
|
|
| 34 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 35 |
0
|
public boolean allowProfileUpdates(User user, Object authentication, int authType, int reqSource)... |
| 36 |
|
throws AuthenticatorException { |
| 37 |
0
|
return true; |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
| 43 |
|
@see |
| 44 |
|
|
| 45 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 46 |
0
|
public boolean allowPasswordUpdates(User user, Object authentication, int authType, int reqSource)... |
| 47 |
|
throws AuthenticatorException { |
| 48 |
0
|
return false; |
| 49 |
|
} |
| 50 |
|
|
| 51 |
|
} |