public interface UsersRepository
Modifier and Type | Method and Description |
---|---|
void |
addUser(String username,
String password)
Adds a user to the repository with the specified password
|
boolean |
contains(String name)
Returns whether or not this user is in the repository
|
int |
countUsers()
Returns a count of the users in the repository.
|
User |
getUserByName(String name)
Get the user object with the specified user name.
|
Iterator<String> |
list()
List users in repository.
|
void |
removeUser(String name)
Removes a user from the repository
|
boolean |
supportVirtualHosting()
Return true if virtualHosting support is enabled, otherwise false
|
boolean |
test(String name,
String password)
Test if user with name 'name' has password 'password'.
|
void |
updateUser(User user)
Update the repository with the specified user object.
|
void addUser(String username, String password) throws UsersRepositoryException
username
- the username of the user to be addedpassword
- the password of the user to addUsersRepositoryException
- if errorUser getUserByName(String name) throws UsersRepositoryException
name
- the name of the user to retrieveUsersRepositoryException
- if errorvoid updateUser(User user) throws UsersRepositoryException
UsersRepositoryException
- if errorvoid removeUser(String name) throws UsersRepositoryException
name
- the user to remove from the repositoryUsersRepositoryException
- if errorboolean contains(String name) throws UsersRepositoryException
name
- the name to check in the repositoryUsersRepositoryException
- if errorboolean test(String name, String password) throws UsersRepositoryException
name
- the name of the user to be testedpassword
- the password to be testedUsersRepositoryException
- if errorint countUsers() throws UsersRepositoryException
UsersRepositoryException
- if errorIterator<String> list() throws UsersRepositoryException
UsersRepositoryException
- if errorboolean supportVirtualHosting() throws UsersRepositoryException
UsersRepositoryException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.