org.romaframework.module.users.view.domain
Class AccountManagementUtility

java.lang.Object
  extended by org.romaframework.module.users.view.domain.AccountManagementUtility

public class AccountManagementUtility
extends java.lang.Object

Utility class for the management of account and password through Spring injection Check of the password expiration period Check for matching between password and regular expression Check of the account expiration period Check for previous password

Author:
F.Cuda

Field Summary
static long DAY_MILLISECONDS
           
 
Constructor Summary
AccountManagementUtility()
           
 
Method Summary
static boolean isAccountExpired(BaseAccount account)
          Check if the account period has gone off
static boolean isPasswordExpired(BaseAccount account)
          Check if the password period has gone off
static boolean isPasswordMathedRegExpression(java.lang.String password)
          Methods allow you to match new password with regular expression setted inside BaseAccount
static boolean isPasswordUnused(BaseAccount account, java.lang.String password)
          Discover if the password have been used before
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DAY_MILLISECONDS

public static final long DAY_MILLISECONDS
See Also:
Constant Field Values
Constructor Detail

AccountManagementUtility

public AccountManagementUtility()
Method Detail

isPasswordExpired

public static boolean isPasswordExpired(BaseAccount account)
Check if the password period has gone off

Returns:

isAccountExpired

public static boolean isAccountExpired(BaseAccount account)
Check if the account period has gone off

Parameters:
account -
Returns:

isPasswordMathedRegExpression

public static boolean isPasswordMathedRegExpression(java.lang.String password)
Methods allow you to match new password with regular expression setted inside BaseAccount

Parameters:
account -
password -
Returns:

isPasswordUnused

public static boolean isPasswordUnused(BaseAccount account,
                                       java.lang.String password)
Discover if the password have been used before

Parameters:
account -
password -
Returns: