public interface PasswordServiceLocal extends PasswordService
PasswordService| Modifier and Type | Method and Description |
|---|---|
void |
addValidations(org.cyclos.impl.utils.validation.Property property,
BasicUser user,
java.lang.String username,
PasswordType passwordType)
Adds all password validations according to specified password type.
|
java.lang.String |
create(BasicUser user,
PasswordType passwordType,
java.lang.String password,
PasswordStatus status)
Creates a password for the given user and password type.
|
boolean |
exists(BasicUser user,
PasswordType passwordType)
Returns whether a valid password exists for the given user / password type
|
java.util.Set<OTPSendMedium> |
getAllowedOTPSendMediums(BasicUser basicUser,
PasswordType passwordType)
Returns the allowed mediums for the given user and password type.
|
PasswordData |
getData(BasicUser user,
PasswordType passwordType)
Returns the
PasswordData for the given user and password type. |
Pair<Password,PasswordStatus> |
getPasswordAndStatus(BasicUser user,
PasswordType passwordType)
Returns the status and the password record for the given user and password type.
|
Pair<PasswordStatus,java.util.Set<PasswordAction>> |
getStatusAndActions(BasicUser user,
PasswordType passwordType)
Similar to
PasswordService.getData(org.cyclos.model.users.users.UserLocatorVO), but with fewer data and preventing
calculating the status twice |
boolean |
isPendingSecurityQuestion()
Returns whether the currently authenticated user needs to set a security question
|
boolean |
isUserCanChangePassword(BasicUser user,
PasswordType passwordType)
Returns if the given user can change the password for the given type
|
boolean |
remove(BasicUser user,
PasswordType passwordType)
Removes the password of the given user and type
|
activate, allowActivation, change, changeForgottenPassword, disable, enable, forgotPasswordRequest, generateNew, getChangeForgottenPasswordData, getChangePasswordData, getData, requestNewOTP, reset, resetAndSend, resetSecurityQuestion, setSecurityQuestion, unblockvoid addValidations(org.cyclos.impl.utils.validation.Property property,
BasicUser user,
java.lang.String username,
PasswordType passwordType)
IllegalActionException - When the given password type doesn't apply to the given userjava.lang.String create(BasicUser user, PasswordType passwordType, java.lang.String password, PasswordStatus status)
IllegalActionException - When the given password type doesn't apply to the given user or the password
should be generatedboolean exists(BasicUser user, PasswordType passwordType)
java.util.Set<OTPSendMedium> getAllowedOTPSendMediums(BasicUser basicUser, PasswordType passwordType)
PasswordData getData(BasicUser user, PasswordType passwordType)
PasswordData for the given user and password type. Returns null if the user has no access to
the given password typePair<Password,PasswordStatus> getPasswordAndStatus(BasicUser user, PasswordType passwordType)
Pair<PasswordStatus,java.util.Set<PasswordAction>> getStatusAndActions(BasicUser user, PasswordType passwordType)
PasswordService.getData(org.cyclos.model.users.users.UserLocatorVO), but with fewer data and preventing
calculating the status twiceboolean isUserCanChangePassword(BasicUser user, PasswordType passwordType)
boolean isPendingSecurityQuestion()
boolean remove(BasicUser user, PasswordType passwordType)