public class Bimsie1AuthInterfaceAdaptor extends Object implements Bimsie1AuthInterface
| Constructor and Description |
|---|
Bimsie1AuthInterfaceAdaptor() |
| Modifier and Type | Method and Description |
|---|---|
SAccessMethod |
getAccessMethod() |
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
|
public SAccessMethod getAccessMethod() throws UserException, ServerException
getAccessMethod in interface Bimsie1AuthInterfaceUserExceptionServerExceptionpublic Boolean isLoggedIn() throws UserException, ServerException
Bimsie1AuthInterfaceisLoggedIn in interface Bimsie1AuthInterfaceUserExceptionServerExceptionpublic String login(String username, String password) throws UserException, ServerException
Bimsie1AuthInterfacelogin in interface Bimsie1AuthInterfaceusername - The username (must be a valid e-mail address)password - The passwordUserExceptionServerExceptionpublic String loginUserToken(String token) throws UserException, ServerException
Bimsie1AuthInterfaceloginUserToken in interface Bimsie1AuthInterfaceUserExceptionServerExceptionpublic void logout()
throws UserException,
ServerException
Bimsie1AuthInterfacelogout in interface Bimsie1AuthInterfaceUserExceptionServerExceptionCopyright © 2016 OpenSource BIM. All rights reserved.