@Security public class PasswordServiceSecurity extends BaseServiceSecurity implements PasswordService
| Constructor and Description |
|---|
PasswordServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
activate(PasswordTypeVO passwordTypeVO)
Activates the generated password a new password for the current user
|
void |
allowActivation(PasswordActionDTO params)
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(PasswordActionDTO params)
Disables a password.
|
void |
enable(PasswordActionDTO params)
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(ChangeGeneratedPasswordDTO params)
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
|
java.util.List<java.lang.String> |
requestNewOTP(OTPSendMedium medium)
Generates a new OTP (removing any previous password, if any) and sends it by the specified medium using the
confirmation password type
configured in the current channel for the logged user.
|
void |
reset(PasswordActionDTO params)
Resets the given generated password and allow it to be activated again
|
void |
resetAndSend(PasswordActionDTO params)
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
|
protected org.cyclos.impl.access.EntityCheck<?> |
resolveEntityCheck()
Must be implemented in order to return the
EntityCheck managed by this security component, or null if
none |
void |
setSecurityQuestion(SetSecurityQuestionDTO params)
Sets the security question's answer for the logged user
|
void |
unblock(PasswordActionDTO params)
Unblocks the given user password
|
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initializecanManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getAccountHandler, getAuthHandler, getBaseEntityManagerHandler, getChannelConfiguration, getConfiguration, getConversionHandler, getCustomFieldValueHandler, getEntityManagerHandler, getGroupsHandler, getLoggedBasicUser, getLoggedUser, getProducts, getProductsHandler, getReportHandler, getTranslatedName, getTranslatedValue, getUserLocatorHandler, getValidationResult, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, toDate, toDateTime, validatedelete, detach, find, flush, from, getApplicationContext, getConfigurationHandler, getDataTranslationHandler, getFormatter, getFormatter, getFormatter, getLogger, getNotificationHandler, getProfileFieldHandler, getRemoteAddress, getSessionData, getTransactionHandler, getTranslationHandler, message, message, persist, processBatch, refresh, remove, subQuery, updatepublic java.lang.String activate(PasswordTypeVO passwordTypeVO) throws FrameworkException, IllegalActionException
PasswordServiceactivate in interface PasswordServiceIllegalActionException - When the given password type is not generated, or is not in the pending stateFrameworkExceptionpublic void allowActivation(PasswordActionDTO params) throws FrameworkException, IllegalActionException
PasswordServiceallowActivation in interface PasswordServiceIllegalActionException - When the given password is not generated / doesn't apply to the given userFrameworkExceptionpublic void change(ChangePasswordDTO dto) throws FrameworkException, IllegalActionException, PasswordException, ValidationException
PasswordServicechange in interface PasswordServicePasswordException - 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)FrameworkExceptionpublic void changeForgottenPassword(ChangeForgottenPasswordDTO dto) throws FrameworkException, InvalidSecurityAnswerException
PasswordServicechangeForgottenPassword in interface PasswordServiceValidationException - When the given new password is invalid according to the constraintsFrameworkExceptionInvalidSecurityAnswerExceptionpublic void disable(PasswordActionDTO params) throws FrameworkException, IllegalActionException
PasswordServicedisable in interface PasswordServiceIllegalActionException - When the current password cannot be disabled (for example, is already disabled)FrameworkExceptionpublic void enable(PasswordActionDTO params) throws FrameworkException, IllegalActionException
PasswordServiceenable in interface PasswordServiceIllegalActionException - When the current password cannot be enabled (not in the disabled state)FrameworkExceptionpublic void forgotPasswordRequest(ForgotPasswordRequestDTO params) throws FrameworkException
PasswordServiceforgotPasswordRequest in interface PasswordServiceFrameworkExceptionpublic java.lang.String generateNew(ChangeGeneratedPasswordDTO params) throws FrameworkException, IllegalActionException
PasswordServicegenerateNew in interface PasswordServiceFrameworkExceptionIllegalActionExceptionpublic ChangeForgottenPasswordData getChangeForgottenPasswordData(java.lang.String validationKey) throws FrameworkException
PasswordServicegetChangeForgottenPasswordData in interface PasswordServiceFrameworkExceptionpublic ChangePasswordData getChangePasswordData() throws FrameworkException
PasswordServicegetChangePasswordData in interface PasswordServiceFrameworkExceptionpublic UserPasswordsData getData(UserLocatorVO locator) throws FrameworkException
PasswordServicegetData in interface PasswordServiceFrameworkExceptionpublic java.util.List<java.lang.String> requestNewOTP(OTPSendMedium medium) throws FrameworkException
PasswordServicerequestNewOTP in interface PasswordServicemedium - the medium used to send the OTP.FrameworkExceptionpublic void reset(PasswordActionDTO params) throws FrameworkException, IllegalActionException
PasswordServicereset in interface PasswordServiceFrameworkExceptionIllegalActionExceptionpublic void resetAndSend(PasswordActionDTO params) throws FrameworkException, IllegalActionException
PasswordServiceresetAndSend in interface PasswordServiceFrameworkExceptionIllegalActionExceptionpublic void resetSecurityQuestion(UserLocatorVO locator) throws FrameworkException
PasswordServiceresetSecurityQuestion in interface PasswordServiceFrameworkExceptionpublic void setSecurityQuestion(SetSecurityQuestionDTO params) throws FrameworkException
PasswordServicesetSecurityQuestion in interface PasswordServiceFrameworkExceptionpublic void unblock(PasswordActionDTO params) throws FrameworkException, IllegalActionException
PasswordServiceunblock in interface PasswordServiceIllegalActionException - When the given password is not blocked / doesn't apply to the given userFrameworkExceptionprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity