public interface UserValidator
Modifier and Type | Method and Description |
---|---|
void |
authenticate(String username,
char[] password)
Validates the given username/password combination.
|
Set<Object> |
getAllKnownUsers()
Get a read-only set of all users the system knows about.
|
void authenticate(String username, char[] password) throws UserValidationException
UserValidationException
is thrown validation was successful.username
- The user to validate against the internal database.password
- The password of username
UserValidationException
- If the user could not be validated. Reasons
as to why this exception may be thrown include:
Set<Object> getAllKnownUsers() throws IllegalStateException
IllegalStateException
- If no user database is available.Copyright © 2014. All rights reserved.