public interface PasswordService extends Service
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
activate(java.lang.Long passwordTypeId)
Activates the generated password a new password for the current user
|
void |
allowActivation(UserLocatorVO locator,
java.lang.Long passwordTypeId)
Allows the given user to activate the given generated and pending password
|
void |
change(ChangePasswordDTO dto)
Manually changes a password
|
void |
changeForgottenPassword(ChangeForgottenPasswordDTO dto)
Changes a forgotten password, or resets it, in case of manual password
|
void |
disable(UserLocatorVO locator,
java.lang.Long passwordTypeId)
Disables a password.
|
void |
enable(UserLocatorVO locator,
java.lang.Long passwordTypeId)
Enables a disabled password.
|
void |
forgotPasswordRequest(ForgotPasswordRequestDTO params)
Initiates the forgot password operation, allowing the user to set another password based on an e-mail token and security question verification
|
java.lang.String |
generateNew(UserLocatorVO locator,
java.lang.Long passwordTypeId)
Allows to change a generated password by generating a new one
|
ChangeForgottenPasswordData |
getChangeForgottenPasswordData(java.lang.String validationKey)
Returns data for a forgot password change request
|
ChangePasswordData |
getChangePasswordData()
Returns data for change the main login password
|
UserPasswordsData |
getData(UserLocatorVO locator)
Returns data for user passwords
|
void |
reset(UserLocatorVO locator,
java.lang.Long passwordTypeId)
Resets the given generated password and allow it to be activated again
|
void |
resetAndSend(UserLocatorVO locator,
java.lang.Long passwordTypeId)
Generates a new value of a manual password and send it to the user (for example, via e-mail).
|
void |
resetSecurityQuestion(UserLocatorVO locator)
Resets the security question, forcing the user to set a new one in the next login
|
void |
setSecurityQuestion(SetSecurityQuestionDTO params)
Sets the security question's answer for the logged user
|
void |
unblock(UserLocatorVO locator,
java.lang.Long passwordTypeId)
Unblocks the given user password
|
java.lang.String activate(java.lang.Long passwordTypeId)
throws FrameworkException
IllegalActionException - When the given password type is not generated, or is not in the pending stateFrameworkExceptionvoid allowActivation(UserLocatorVO locator, java.lang.Long passwordTypeId) throws FrameworkException
IllegalActionException - When the given password is not generated / doesn't apply to the given userFrameworkExceptionvoid change(ChangePasswordDTO dto) throws FrameworkException, PasswordException
PasswordException - The current password is invalidValidationException - When the given new password is invalid according to the constraintsIllegalActionException - When the current password cannot be changed (for example, it is generated)FrameworkExceptionvoid changeForgottenPassword(ChangeForgottenPasswordDTO dto) throws FrameworkException, InvalidSecurityAnswerException
ValidationException - When the given new password is invalid according to the constraintsFrameworkExceptionInvalidSecurityAnswerExceptionvoid disable(UserLocatorVO locator, java.lang.Long passwordTypeId) throws FrameworkException
IllegalActionException - When the current password cannot be disabled (for example, is already disabled)FrameworkExceptionvoid enable(UserLocatorVO locator, java.lang.Long passwordTypeId) throws FrameworkException
IllegalActionException - When the current password cannot be enabled (not in the disabled state)FrameworkExceptionvoid forgotPasswordRequest(ForgotPasswordRequestDTO params) throws FrameworkException
FrameworkExceptionjava.lang.String generateNew(UserLocatorVO locator, java.lang.Long passwordTypeId) throws FrameworkException, IllegalActionException
ChangeForgottenPasswordData getChangeForgottenPasswordData(java.lang.String validationKey) throws FrameworkException
FrameworkExceptionChangePasswordData getChangePasswordData() throws FrameworkException
FrameworkExceptionUserPasswordsData getData(UserLocatorVO locator) throws FrameworkException
FrameworkExceptionvoid reset(UserLocatorVO locator, java.lang.Long passwordTypeId) throws FrameworkException
FrameworkExceptionvoid resetAndSend(UserLocatorVO locator, java.lang.Long passwordTypeId) throws FrameworkException
FrameworkExceptionvoid resetSecurityQuestion(UserLocatorVO locator) throws FrameworkException
FrameworkExceptionvoid setSecurityQuestion(SetSecurityQuestionDTO params) throws FrameworkException
FrameworkExceptionvoid unblock(UserLocatorVO locator, java.lang.Long passwordTypeId) throws FrameworkException
IllegalActionException - When the given password is not blocked / doesn't apply to the given userFrameworkException