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.
|
boolean |
isUserCanChangePassword(BasicUser user,
PasswordType passwordType)
Returns if the given user can change the password for the given type
|
void |
removeOTP()
Removes the otp confirmation password for the logged user (if any) ONLY if it can't be reused (see setting in password 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)
throws FrameworkException,
IllegalActionException
IllegalActionException - When the given password type doesn't apply to the given userFrameworkExceptionjava.lang.String create(BasicUser user, PasswordType passwordType, java.lang.String password, PasswordStatus status) throws FrameworkException, IllegalActionException
IllegalActionException - When the given password type doesn't apply to the given user or the password should be generatedFrameworkExceptionboolean exists(BasicUser user, PasswordType passwordType) throws FrameworkException
FrameworkExceptionjava.util.Set<OTPSendMedium> getAllowedOTPSendMediums(BasicUser basicUser, PasswordType passwordType) throws FrameworkException
FrameworkExceptionPasswordData getData(BasicUser user, PasswordType passwordType) throws FrameworkException
PasswordData for the given user and password type. Returns null if the user has no access to the given password typeFrameworkExceptionPair<Password,PasswordStatus> getPasswordAndStatus(BasicUser user, PasswordType passwordType) throws FrameworkException
FrameworkExceptionboolean isUserCanChangePassword(BasicUser user, PasswordType passwordType) throws FrameworkException
FrameworkExceptionvoid removeOTP()
throws FrameworkException
FrameworkException