public class BasicAuthentication extends Object implements AuthenticationProvider
| Constructor and Description |
|---|
BasicAuthentication() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(String username,
String password)
Authenticates the user using the given credentials, if successful a new
session will be created.
|
boolean |
authenticate(String username,
String password,
Object userObject)
Authenticates the user using the given credentials, if successful a new
session will be created.
|
boolean |
isEnabled()
A provider can be in a disabled state
|
void |
setUserDAO(UserDAO userDAO) |
boolean |
validateOnUser(String user) |
protected UserDAO userDAO
public void setUserDAO(UserDAO userDAO)
public boolean validateOnUser(String user)
validateOnUser in interface AuthenticationProviderpublic boolean isEnabled()
AuthenticationProviderisEnabled in interface AuthenticationProviderpublic boolean authenticate(String username, String password, Object userObject)
AuthenticationProviderauthenticate in interface AuthenticationProvideruserObject - Opaque object that will be associated to the sessionpublic boolean authenticate(String username, String password)
AuthenticationProviderauthenticate in interface AuthenticationProviderCopyright © 2008-2014 Logical Objects. All Rights Reserved.