public interface AuthenticationService
Modifier and Type | Method and Description |
---|---|
void |
addUserRole(String login,
String role)
Add the role with the given name to the user with the given login.
|
boolean |
authenticateUser(String login,
String password)
Authenticate the user with the given login and password.
|
Set<String> |
listAuthProviderNames()
Returns a list of available
AuthenticationProvider names. |
Set<String> |
listUserRoles(String login)
Return the roles that are assigned to the user (a list of strings that can be chosen by the administrator as
needed).
|
void |
removeUserRole(String login,
String role)
Remove the role with the given name from the user with the given login.
|
void |
setUserPassword(String login,
String password)
Change the password of the user with the given login to the given new password.
|
boolean authenticateUser(String login, String password)
login
- login of the user to authenticatepassword
- password of the user to authenticatevoid setUserPassword(String login, String password)
login
- password
- Set<String> listUserRoles(String login)
login
- login name of the user for whom to return the rolesvoid addUserRole(String login, String role)
login
- the login name of the user with whom to associate rolesrole
- the role name to associate with the uservoid removeUserRole(String login, String role)
login
- the login name of the user from whom to remove the rolerole
- the role name to remove from the list of roles of the userSet<String> listAuthProviderNames()
AuthenticationProvider
names.Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.