public interface PlatformLoginService
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValid(long sessionId)
Verify if a session is valid
|
SPlatformSession |
login(java.lang.String userName,
java.lang.String password)
login to the platform by userName and password
|
void |
logout(long sessionId)
logout the platform by sessionId
|
SPlatformSession login(java.lang.String userName, java.lang.String password) throws SPlatformLoginException, SInvalidPlatformCredentialsException
userName - name of userpassword - password of userSPlatformLoginExceptionSInvalidPlatformCredentialsExceptionSPlatformSessionvoid logout(long sessionId)
throws SSessionNotFoundException
sessionId - identifier of platform sessionSSessionNotFoundExceptionboolean isValid(long sessionId)
sessionId - identifier of platform session