|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpalio.modules.core.Module
palio.modules.UserSecurity
public class UserSecurity
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_CONFIGURATION_OBJECT_CODE
|
static UserSecurityPasswordRule |
DEFAULT_MODULE_PASSWORD_RULE
|
| Fields inherited from interface palio.modules.core.CurrentModuleDataKeys |
|---|
DESIGNER_ACTIONS_BUFFER, HTML_FORM_BUILDER, HTML_MAP_BUILDER, HTML_MENU_BUILDER, HTML_TOOLTIPS_BUFFER, ITEXT_DOCUMENT, MAIL_MESSAGE, XLS_DOCUMENT, XML_DOCUMENT |
| Constructor Summary | |
|---|---|
UserSecurity(Instance instance,
java.util.Properties parameters)
|
|
| Method Summary | |
|---|---|
java.lang.String |
generatePasswordForRole(java.lang.Long roleId)
Generates password that will satisfy constraints for given role. |
java.lang.String |
generatePasswordForRoles(java.util.Set<java.lang.Long> roleIds)
Generates password that will satisfy constraints for all given roles. |
java.lang.String |
generatePasswordForUser(java.lang.Long userId)
Generates password that will satisfy constraints for all user roles. |
java.lang.String |
generatePasswordForUser(PUser user)
Generates password that will satisfy constraints for all user roles. |
java.lang.String |
getConfigurationObjectCode()
When data source is not xmlObject will throw UserSecurityException. |
java.lang.String |
getVersion()
Returns the module version |
void |
reloadConfig()
Reloads configuration from defined in instance source. |
boolean |
testRolePassword(java.lang.String password,
java.lang.Long roleId)
Tests all matching rules, note that if one role is defined in multiple rules, it can cause conflict rules. |
boolean |
testRolesPassword(java.lang.String password,
java.util.Set<java.lang.Long> roleIds)
Tests all matching rules, note that if one role is defined in multiple rules, it can cause conflict rules. |
boolean |
testUserPassword(java.lang.String password,
java.lang.Long userId)
Tests all matching rules, note that if one role is defined in multiple rules, it can cause conflict rules. |
boolean |
testUserPassword(java.lang.String password,
PUser user)
Tests all matching rules, note that if one role is defined in multiple rules, it can cause conflict rules. |
boolean |
testUserPasswordAge(java.lang.Long userId)
Tests password age, checks if password is older than days from max value in age constraint. |
boolean |
testUserPasswordAge(java.lang.Long userId,
java.util.Date currentDate)
Tests password age, checks if password is older than days from max value in age constraint. |
boolean |
testUserPasswordAge(PUser user)
Tests password age, checks if password is older than days from max value in age constraint. |
boolean |
testUserPasswordAge(PUser user,
java.util.Date currentDate)
Tests password age, checks if password is older than days from max value in age constraint. |
boolean |
testUserPasswordAge(java.lang.String userName)
Tests password age, checks if password is older than days from max value in age constraint. |
boolean |
testUserPasswordAge(java.lang.String userName,
java.util.Date currentDate)
Tests password age, checks if password is older than days from max value in age constraint. |
| Methods inherited from class palio.modules.core.Module |
|---|
getConfigParam, getDescription, getModuleTranslation |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static UserSecurityPasswordRule DEFAULT_MODULE_PASSWORD_RULE
public static final java.lang.String DEFAULT_CONFIGURATION_OBJECT_CODE
| Constructor Detail |
|---|
public UserSecurity(Instance instance,
java.util.Properties parameters)
| Method Detail |
|---|
public java.lang.String getVersion()
Module
getVersion in class Modulepublic void reloadConfig()
public java.lang.String getConfigurationObjectCode()
throws UserSecurityException
UserSecurityException
public boolean testRolesPassword(java.lang.String password,
java.util.Set<java.lang.Long> roleIds)
throws UserSecurityException
password - tested passwordroleIds - roles for which rules will be tested
UserSecurityException
public boolean testRolePassword(java.lang.String password,
java.lang.Long roleId)
throws UserSecurityException
password - tested passwordroleId - roles for which rules will be tested
UserSecurityException
public boolean testUserPassword(java.lang.String password,
PUser user)
throws UserSecurityException
password - tested passworduser - jPalio user from which rules will be got and tested
UserSecurityException
public boolean testUserPassword(java.lang.String password,
java.lang.Long userId)
throws UserSecurityException,
palio.PalioException
password - tested passworduserId - jPalio user id from which rules will be got and tested
UserSecurityException
palio.PalioException
public boolean testUserPasswordAge(PUser user,
java.util.Date currentDate)
throws UserSecurityException
user - jPalio usercurrentDate - date for which password will be tested
UserSecurityException
public boolean testUserPasswordAge(PUser user)
throws UserSecurityException
user - jPalio user
UserSecurityException
public boolean testUserPasswordAge(java.lang.Long userId,
java.util.Date currentDate)
throws palio.PalioException
userId - jPalio user idcurrentDate - date for which password will be tested
UserSecurityException
palio.PalioException
public boolean testUserPasswordAge(java.lang.Long userId)
throws palio.PalioException
userId - jPalio user id
UserSecurityException
palio.PalioException
public boolean testUserPasswordAge(java.lang.String userName,
java.util.Date currentDate)
throws palio.PalioException
userName - jPalio user logincurrentDate - date for which password will be tested
UserSecurityException
palio.PalioException
public boolean testUserPasswordAge(java.lang.String userName)
throws palio.PalioException
userName - jPalio user login
UserSecurityException
palio.PalioException
public java.lang.String generatePasswordForRoles(java.util.Set<java.lang.Long> roleIds)
throws UserSecurityException
roleIds - roles for which rules for which constraints password must pass
UserSecurityException
public java.lang.String generatePasswordForRole(java.lang.Long roleId)
throws UserSecurityException
roleId - role for which rule for which constraints password must pass
UserSecurityException
public java.lang.String generatePasswordForUser(PUser user)
throws palio.PalioException
user - user for which password is generated
UserSecurityException
palio.PalioException
public java.lang.String generatePasswordForUser(java.lang.Long userId)
throws palio.PalioException
userId - user id for which password is generated
UserSecurityException
palio.PalioException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||