public class AuthInterfaceAdaptor extends Object implements AuthInterface
| Constructor and Description |
|---|
AuthInterfaceAdaptor() |
| 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) |
public Boolean changePassword(Long uoid, String oldPassword, String newPassword) throws UserException, ServerException
AuthInterfacechangePassword in interface AuthInterfaceuoid - The ObjectID of the UseroldPassword - The old passwordnewPassword - The new passwordUserExceptionServerExceptionpublic SUser getLoggedInUser() throws UserException, ServerException
getLoggedInUser in interface AuthInterfaceUserExceptionServerExceptionpublic void requestPasswordChange(String username, String resetUrl) throws UserException, ServerException
AuthInterfacerequestPasswordChange in interface AuthInterfaceusername - The username of the user to change tot password forUserExceptionServerExceptionpublic void setHash(Long uoid, byte[] hash, byte[] salt) throws UserException, ServerException
AuthInterfacesetHash in interface AuthInterfaceuoid - The ObjectID of the UserUserExceptionServerExceptionpublic SUser validateAccount(Long uoid, String token, String password) throws UserException, ServerException
validateAccount in interface AuthInterfaceuoid - The ObejctID of the Usertoken - The token generated by requestPasswordChangepassword - The new passwordUserExceptionServerExceptionCopyright © 2016 OpenSource BIM. All rights reserved.