public class LocalAuthentication extends Object implements IAuthentication
Constructor and Description |
---|
LocalAuthentication() |
Modifier and Type | Method and Description |
---|---|
String |
authenticates(String userId,
String password)
Authenticates a user's name and password against the system's stored credentials
|
protected boolean |
isValidPassword(Account account,
String password)
Check if the given password is valid for the account.
|
public String authenticates(String userId, String password) throws AuthenticationException
IAuthentication
authenticates
in interface IAuthentication
userId
- user login Identifierpassword
- user passwordAuthenticationException
- on exception authenticatingprotected boolean isValidPassword(Account account, String password)
account
- user account whose password is being checkedpassword
- user entered password being checked for validationCopyright © 2017. All rights reserved.