|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.joseluismartin.auth.AuthManager
public class AuthManager
An Auth Manager that uses AuthStrategy to authorize users
| Constructor Summary | |
|---|---|
AuthManager()
|
|
| Method Summary | |
|---|---|
boolean |
authUser(User user,
String password)
Autenticate a User that was identified by password |
AuthStrategy |
getAuthStrategy()
Getter for AuthStrategy |
UserDao |
getUserDao()
|
void |
setAuthStrategy(AuthStrategy authStrategy)
Setter for AuthStrategy |
void |
setUserDao(UserDao userDao)
|
boolean |
validate(String username,
String password)
Validate a user |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthManager()
| Method Detail |
|---|
public boolean authUser(User user,
String password)
user - the user to autenticatepassword - plain user supplied password
public final boolean validate(String username,
String password)
validate in interface AuthServiceusername - the usernamepassword - the supplied user password
public AuthStrategy getAuthStrategy()
public void setAuthStrategy(AuthStrategy authStrategy)
authStrategy - the authStrategy to setpublic UserDao getUserDao()
public void setUserDao(UserDao userDao)
userDao - the userDao to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||