|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.silverpeas.authentication.verifier.UserCanLoginVerifier
public class UserCanLoginVerifier
Class that provides tools to verify if the user can login in relation to its account state. User: Yohann Chastagnier Date: 02/02/13
| Field Summary | |
|---|---|
static String |
ERROR_INCORRECT_LOGIN_PWD
|
static String |
ERROR_INCORRECT_LOGIN_PWD_DOMAIN
|
static String |
ERROR_USER_ACCOUNT_BLOCKED
|
static String |
ERROR_USER_ACCOUNT_DEACTIVATED
|
protected static Map<String,ResourceLocator> |
multilang
|
protected static ResourceLocator |
otherSettings
|
protected static ResourceLocator |
settings
|
| Constructor Summary | |
|---|---|
protected |
UserCanLoginVerifier(UserDetail user)
Default constructor. |
| Method Summary | |
|---|---|
String |
getErrorDestination()
Gets the error destination. |
protected static String |
getString(String key,
String language,
String... params)
Gets a string message according to the given language. |
UserDetail |
getUser()
Gets the user. |
protected static UserDetail |
getUserByCredential(AuthenticationCredential credential)
Gets a user from its credentials. |
protected static UserDetail |
getUserById(String userId)
Gets a user from its identifier. |
void |
setUser(UserDetail user)
Sets the user. |
void |
verify()
Verify if the user can login. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ERROR_INCORRECT_LOGIN_PWD
public static final String ERROR_INCORRECT_LOGIN_PWD_DOMAIN
public static final String ERROR_USER_ACCOUNT_BLOCKED
public static final String ERROR_USER_ACCOUNT_DEACTIVATED
protected static final Map<String,ResourceLocator> multilang
protected static final ResourceLocator settings
protected static final ResourceLocator otherSettings
| Constructor Detail |
|---|
protected UserCanLoginVerifier(UserDetail user)
user - | Method Detail |
|---|
public String getErrorDestination()
public void verify()
throws AuthenticationException
AuthenticationExceptionpublic void setUser(UserDetail user)
user - public UserDetail getUser()
protected static UserDetail getUserByCredential(AuthenticationCredential credential)
credential -
AuthenticationExceptionprotected static UserDetail getUserById(String userId)
userId -
protected static String getString(String key,
String language,
String... params)
key - language - params -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||