|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Authenticator
This interface defines a simple authentication and group-authorization module. It provides methods to authenticate a user using a simple login and password string. It also allows for checking group-membership of a given username.
| Method Summary | |
|---|---|
boolean |
authenticate(String login,
String password)
This method is used to authenticate the given user ( login) with
the specified password. |
List<String> |
getRoles(String login)
This method returns the list of groups which the user sepcified by login
belongs to. |
boolean |
isUserInRole(String user,
String role)
This method returns if the given user ( user) is a member of the
specified group (role). |
| Method Detail |
|---|
boolean authenticate(String login,
String password)
login) with
the specified password.
login - The login of the user to authenticate.password - The password used for authentication.
true, if the user exists and the password equals the one
stored within the authenticator.
boolean isUserInRole(String user,
String role)
user) is a member of the
specified group (role).
user - The user to check.role - The group to check.
true, if the users is a member of the given group.List<String> getRoles(String login)
login
belongs to.
login - The user's login.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||