|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.authentication.verifier.UserMustChangePasswordVerifier
public class UserMustChangePasswordVerifier
Class that provides tools to verify if the user have to change his password or if the user will soon have to change his password. User: Yohann Chastagnier Date: 14/02/13
Field Summary | |
---|---|
static String |
ERROR_PWD_AND_EMAIL_MUST_BE_CHANGED_ON_FIRST_LOGIN
|
static String |
ERROR_PWD_MUST_BE_CHANGED_ON_FIRST_LOGIN
|
protected static boolean |
isMaxConnectionActivated
|
protected static boolean |
isOffsetConnectionActivated
|
protected static boolean |
isThatUserMustChangePasswordOnFirstLogin
|
protected static boolean |
isThatUserMustFillEmailAddressOnFirstLogin
|
protected static Map<String,ResourceLocator> |
multilang
|
protected static int |
nbMaxConnectionsForForcing
|
protected static int |
nbMaxConnectionsForProposing
|
protected static ResourceLocator |
otherSettings
|
protected static ResourceLocator |
settings
|
Constructor Summary | |
---|---|
protected |
UserMustChangePasswordVerifier(UserDetail user)
Default constructor. |
Method Summary | |
---|---|
String |
getDestinationOnFirstLogin(javax.servlet.http.HttpServletRequest request)
Gets the destination on first login. |
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 |
notifyPasswordChange()
Notifies that user has changed his password. |
protected static void |
setup(boolean userMustChangePasswordOnFirstLogin,
boolean userMustFillEmailAddressOnFirstLogin,
int nbSuccessfulUserConnectionsBeforeForcingPasswordChange,
int nbSuccessfulUserConnectionsBeforeProposingToChangePassword)
Initializing settings. |
void |
setUser(UserDetail user)
Sets the user. |
void |
verify()
Verify if user has to change his password or if the user will soon be obliged to change his password. |
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_PWD_MUST_BE_CHANGED_ON_FIRST_LOGIN
public static final String ERROR_PWD_AND_EMAIL_MUST_BE_CHANGED_ON_FIRST_LOGIN
protected static boolean isThatUserMustChangePasswordOnFirstLogin
protected static boolean isThatUserMustFillEmailAddressOnFirstLogin
protected static boolean isMaxConnectionActivated
protected static boolean isOffsetConnectionActivated
protected static int nbMaxConnectionsForForcing
protected static int nbMaxConnectionsForProposing
protected static final Map<String,ResourceLocator> multilang
protected static final ResourceLocator settings
protected static final ResourceLocator otherSettings
Constructor Detail |
---|
protected UserMustChangePasswordVerifier(UserDetail user)
user
- Method Detail |
---|
protected static void setup(boolean userMustChangePasswordOnFirstLogin, boolean userMustFillEmailAddressOnFirstLogin, int nbSuccessfulUserConnectionsBeforeForcingPasswordChange, int nbSuccessfulUserConnectionsBeforeProposingToChangePassword)
public String getDestinationOnFirstLogin(javax.servlet.http.HttpServletRequest request)
public void verify() throws AuthenticationException
AuthenticationException
public void notifyPasswordChange()
public void setUser(UserDetail user)
user
- public UserDetail getUser()
protected static UserDetail getUserByCredential(AuthenticationCredential credential)
credential
-
AuthenticationException
protected 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 |