|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface UserManager
This interface defines the methods used to manage User instances. To can get a UserManager instance by asking it at your SecurityManager.
SecurityManager,
JdbcSecurityManager,
User| Method Summary | |
|---|---|
User |
checkCredentials(java.lang.String userLogin,
java.lang.String userPassword)
Check if the pair login/password represents an autorized user for the considered application. |
void |
deleteUser(User user)
Delete the specified user from the security system. |
java.lang.String |
encryptPassword(java.lang.String clearPassword)
Defines the algorithm used for encode password. |
User |
getUserById(int userId)
TODO Note: a user instance is not authentified. |
User |
insertUser(java.lang.String login,
java.lang.String password)
Insert a new user in the security system. |
void |
updateUser(User user)
Update informations, in the security system, for the specified user. |
| Method Detail |
|---|
User checkCredentials(java.lang.String userLogin,
java.lang.String userPassword)
throws AccountDisabledException,
BadCredentialsException
userLogin - The login for the considered user.userPassword - The password for the considered user.
AccountDisabledException - Thrown when the provided account informations there invalid.
BadCredentialsException - Thrown if the identity is rejected.User getUserById(int userId)
userId - The user identifier (the primary key into the security database).
User insertUser(java.lang.String login,
java.lang.String password)
throws UserAlreadyRegisteredException,
SecurityManagerException
login - The login for the considered user.password - The password for the considered user. The specified password
is automaticly encoded by this method.
SecurityManagerException - Thrown if the new user cannot be inserted in the security system.
UserAlreadyRegisteredException - Thrown if the specified login is already registered in the security system.
void updateUser(User user)
throws SecurityManagerException
user - The user instance to update.
SecurityManagerException - Thrown if this manager cannot update the user informations.
void deleteUser(User user)
throws SecurityManagerException
user - The user to delete.
SecurityManagerException - Thrown if this manager cannot remove the user.
java.lang.String encryptPassword(java.lang.String clearPassword)
throws SecurityManagerException
clearPassword - A password (in clear).
SecurityManagerException - Thrown if password encription failed.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||