|
|||||||
| 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 palio.modules.usersecurity.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(palio.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(java.lang.Long userId,
java.lang.String connectorName)
Generates password that will satisfy constraints for all user roles. |
java.lang.String |
generatePasswordForUser(palio.pelements.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. |
java.lang.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. |
java.lang.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. |
java.lang.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. |
java.lang.Boolean |
testUserPassword(java.lang.String password,
java.lang.Long userId,
java.lang.String connectorName)
Tests all matching rules, note that if one role is defined in multiple rules, it can cause conflict rules. |
java.lang.Boolean |
testUserPassword(java.lang.String password,
palio.pelements.PUser user)
Tests all matching rules, note that if one role is defined in multiple rules, it can cause conflict rules. |
java.lang.Boolean |
testUserPasswordAge(java.lang.Long userId)
Tests password age, checks if password is older than days from max value in age constraint. |
java.lang.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. |
java.lang.Boolean |
testUserPasswordAge(java.lang.Long userId,
java.util.Date currentDate,
java.lang.String connectorName)
Tests password age, checks if password is older than days from max value in age constraint. |
java.lang.Boolean |
testUserPasswordAge(java.lang.Long userId,
java.lang.String connectorName)
Tests password age, checks if password is older than days from max value in age constraint. |
java.lang.Boolean |
testUserPasswordAge(palio.pelements.PUser user)
Tests password age, checks if password is older than days from max value in age constraint. |
java.lang.Boolean |
testUserPasswordAge(palio.pelements.PUser user,
java.util.Date currentDate)
Tests password age, checks if password is older than days from max value in age constraint. |
java.lang.Boolean |
testUserPasswordAge(java.lang.String userName)
Tests password age, checks if password is older than days from max value in age constraint. |
java.lang.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. |
java.lang.Boolean |
testUserPasswordAge(java.lang.String userName,
java.util.Date currentDate,
java.lang.String connectorName)
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 palio.modules.usersecurity.UserSecurityPasswordRule DEFAULT_MODULE_PASSWORD_RULE
public static final java.lang.String DEFAULT_CONFIGURATION_OBJECT_CODE
| Constructor Detail |
|---|
public UserSecurity(palio.Instance instance,
java.util.Properties parameters)
| Method Detail |
|---|
public java.lang.String getVersion()
palio.modules.core.Module
getVersion in class palio.modules.core.Modulepublic void reloadConfig()
public java.lang.String getConfigurationObjectCode()
throws palio.modules.usersecurity.UserSecurityException
palio.modules.usersecurity.UserSecurityException
public java.lang.Boolean testRolesPassword(java.lang.String password,
java.util.Set<java.lang.Long> roleIds)
throws palio.modules.usersecurity.UserSecurityException
password - tested passwordroleIds - roles for which rules will be tested
palio.modules.usersecurity.UserSecurityException
public java.lang.Boolean testRolePassword(java.lang.String password,
java.lang.Long roleId)
throws palio.modules.usersecurity.UserSecurityException
password - tested passwordroleId - roles for which rules will be tested
palio.modules.usersecurity.UserSecurityException
public java.lang.Boolean testUserPassword(java.lang.String password,
palio.pelements.PUser user)
throws palio.modules.usersecurity.UserSecurityException
password - tested passworduser - jPalio user from which rules will be got and tested
palio.modules.usersecurity.UserSecurityException
public java.lang.Boolean testUserPassword(java.lang.String password,
java.lang.Long userId)
throws palio.modules.usersecurity.UserSecurityException,
palio.PalioException
password - tested passworduserId - jPalio user id from which rules will be got and tested
palio.modules.usersecurity.UserSecurityException
palio.PalioException
public java.lang.Boolean testUserPassword(java.lang.String password,
java.lang.Long userId,
java.lang.String connectorName)
throws palio.modules.usersecurity.UserSecurityException,
palio.PalioException
password - tested passworduserId - jPalio user id from which rules will be got and tested
palio.modules.usersecurity.UserSecurityException
palio.PalioException
public java.lang.Boolean testUserPasswordAge(palio.pelements.PUser user,
java.util.Date currentDate)
throws palio.modules.usersecurity.UserSecurityException
user - jPalio usercurrentDate - date for which password will be tested
palio.modules.usersecurity.UserSecurityException
public java.lang.Boolean testUserPasswordAge(palio.pelements.PUser user)
throws palio.modules.usersecurity.UserSecurityException
user - jPalio user
palio.modules.usersecurity.UserSecurityException
public java.lang.Boolean testUserPasswordAge(java.lang.Long userId,
java.util.Date currentDate)
throws palio.PalioException
userId - jPalio user idcurrentDate - date for which password will be tested
palio.modules.usersecurity.UserSecurityException
palio.PalioException
public java.lang.Boolean testUserPasswordAge(java.lang.Long userId,
java.util.Date currentDate,
java.lang.String connectorName)
throws palio.PalioException
userId - jPalio user idcurrentDate - date for which password will be tested
palio.modules.usersecurity.UserSecurityException
palio.PalioException
public java.lang.Boolean testUserPasswordAge(java.lang.Long userId)
throws palio.PalioException
userId - jPalio user id
palio.modules.usersecurity.UserSecurityException
palio.PalioException
public java.lang.Boolean testUserPasswordAge(java.lang.Long userId,
java.lang.String connectorName)
throws palio.PalioException
userId - jPalio user id
palio.modules.usersecurity.UserSecurityException
palio.PalioException
public java.lang.Boolean testUserPasswordAge(java.lang.String userName,
java.util.Date currentDate)
throws palio.PalioException
userName - jPalio user logincurrentDate - date for which password will be tested
palio.modules.usersecurity.UserSecurityException
palio.PalioException
public java.lang.Boolean testUserPasswordAge(java.lang.String userName,
java.util.Date currentDate,
java.lang.String connectorName)
throws palio.PalioException
userName - jPalio user logincurrentDate - date for which password will be tested
palio.modules.usersecurity.UserSecurityException
palio.PalioException
public java.lang.Boolean testUserPasswordAge(java.lang.String userName)
throws palio.PalioException
userName - jPalio user login
palio.modules.usersecurity.UserSecurityException
palio.PalioException
public java.lang.String generatePasswordForRoles(java.util.Set<java.lang.Long> roleIds)
throws palio.modules.usersecurity.UserSecurityException
roleIds - roles for which rules for which constraints password must pass
palio.modules.usersecurity.UserSecurityException
public java.lang.String generatePasswordForRole(java.lang.Long roleId)
throws palio.modules.usersecurity.UserSecurityException
roleId - role for which rule for which constraints password must pass
palio.modules.usersecurity.UserSecurityException
public java.lang.String generatePasswordForUser(palio.pelements.PUser user)
throws palio.PalioException
user - user for which password is generated
palio.modules.usersecurity.UserSecurityException
palio.PalioException
public java.lang.String generatePasswordForUser(java.lang.Long userId)
throws palio.PalioException
userId - user id for which password is generated
palio.modules.usersecurity.UserSecurityException
palio.PalioException
public java.lang.String generatePasswordForUser(java.lang.Long userId,
java.lang.String connectorName)
throws palio.PalioException
userId - user id for which password is generated
palio.modules.usersecurity.UserSecurityException
palio.PalioException
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||