public interface Authenticator
| Modifier and Type | Method and Description |
|---|---|
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). |
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.Copyright © 2015 jwall.org. All Rights Reserved.