public interface AuthInterface extends PublicInterface
| Modifier and Type | Method and Description |
|---|---|
Boolean |
changePassword(Long uoid,
String oldPassword,
String newPassword)
Change a User's password, not the preferred way, use requestPasswordChange for a safer version
|
SUser |
getLoggedInUser() |
void |
requestPasswordChange(String username,
String resetUrl)
Request a password change, an e-mail will be send with a validation url
|
void |
setHash(Long uoid,
byte[] hash,
byte[] salt)
Change a User's password, not the preferred way, use requestPasswordChange for a safer version
|
SUser |
validateAccount(Long uoid,
String token,
String password) |
SUser getLoggedInUser() throws ServerException, UserException
ServerException, - UserExceptionServerExceptionUserExceptionBoolean changePassword(Long uoid, String oldPassword, String newPassword) throws ServerException, UserException
uoid - The ObjectID of the UseroldPassword - The old passwordnewPassword - The new passwordServerException, - UserExceptionServerExceptionUserExceptionvoid setHash(Long uoid, byte[] hash, byte[] salt) throws ServerException, UserException
uoid - The ObjectID of the UseroldPassword - The old passwordnewPassword - The new passwordServerException, - UserExceptionServerExceptionUserExceptionvoid requestPasswordChange(String username, String resetUrl) throws ServerException, UserException
username - The username of the user to change tot password forServerException, - UserExceptionServerExceptionUserExceptionSUser validateAccount(Long uoid, String token, String password) throws ServerException, UserException
uoid - The ObejctID of the Usertoken - The token generated by requestPasswordChangepassword - The new passwordServerException, - UserExceptionServerExceptionUserExceptionCopyright © 2016 OpenSource BIM. All rights reserved.