public class AuthenticationChain extends Object implements AuthenticationProvider
| Constructor and Description |
|---|
AuthenticationChain() |
| 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.
|
static String |
getSessionId() |
boolean |
isEnabled()
A provider can be in a disabled state
|
boolean |
validate(String username,
String password)
Try to authenticate the user without creating a new session
|
boolean |
validateOnUser(String user) |
public static String getSessionId()
public final boolean authenticate(String username, String password)
AuthenticationProviderauthenticate in interface AuthenticationProviderpublic final boolean authenticate(String username, String password, Object userObject)
AuthenticationProviderauthenticate in interface AuthenticationProvideruserObject - Opaque object that will be associated to the sessionpublic boolean validate(String username, String password)
username - password - public boolean validateOnUser(String user)
validateOnUser in interface AuthenticationProviderpublic boolean isEnabled()
AuthenticationProviderisEnabled in interface AuthenticationProviderCopyright © 2008-2014 Logical Objects. All Rights Reserved.