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)
AuthenticationProvider
authenticate
in interface AuthenticationProvider
public final boolean authenticate(String username, String password, Object userObject)
AuthenticationProvider
authenticate
in interface AuthenticationProvider
userObject
- 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 AuthenticationProvider
public boolean isEnabled()
AuthenticationProvider
isEnabled
in interface AuthenticationProvider
Copyright © 2008-2014 Logical Objects. All Rights Reserved.