public interface PasswordServiceLocal extends PasswordService
PasswordService| Modifier and Type | Method and Description |
|---|---|
void |
addValidation(org.cyclos.impl.utils.validation.Property property,
BasicUser user,
java.lang.String username,
PasswordType passwordType)
Adds a validation for the given property validation
|
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
|
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
|
activate, allowActivation, change, changeForgottenPassword, disable, enable, forgotPasswordRequest, generateNew, getChangeForgottenPasswordData, getChangePasswordData, getData, reset, resetAndSend, resetSecurityQuestion, setSecurityQuestion, unblockvoid addValidation(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
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
FrameworkException