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
|
SAccessMethod |
getAccessMethod() |
SUser |
getLoggedInUser() |
Boolean |
isLoggedIn()
Check whether the server considers the user (token) as logged-in
|
String |
login(String username,
String password)
Login with a username/password combination
|
String |
loginUserToken(String token)
Login with a user-token
|
void |
logout()
Logout
|
void |
requestPasswordChange(String username,
String resetUrl,
Boolean includeSiteAddress)
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) |
String login(String username, String password) throws ServerException, UserException
username - The username (must be a valid e-mail address)password - The passwordServerException, - UserExceptionServerExceptionUserExceptionvoid logout()
throws ServerException,
UserException
ServerException, - UserExceptionServerExceptionUserExceptionBoolean isLoggedIn() throws ServerException, UserException
ServerException, - UserExceptionServerExceptionUserExceptionSAccessMethod getAccessMethod() throws ServerException, UserException
ServerException, - UserExceptionServerExceptionUserExceptionString loginUserToken(String token) throws ServerException, UserException
token - ServerExceptionUserExceptionSUser 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, Boolean includeSiteAddress) 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 © 2018 OpenSource BIM. All rights reserved.