public interface LoginAPI
| Modifier and Type | Method and Description |
|---|---|
APISession |
login(String userName,
String password)
Connects the user in order to use API methods of the default tenant.
|
void |
logout(APISession session)
Disconnects the logged user on a tenant according to the given session.
|
APISession login(String userName, String password) throws LoginException
userName - the user namepassword - the passwordLoginException - occurs when an exception is thrown during loginvoid logout(APISession session) throws SessionNotFoundException, LogoutException
session - the tenant sessionSessionNotFoundException - if the given session is not found on the server side. This may occurs when the session has expired.LogoutException - occurs when an exception is thrown during the logoutCopyright © 2013 BonitaSoft. All Rights Reserved.