Interface PlatformLoginService
- All Known Implementing Classes:
PlatformLoginServiceImpl
public interface PlatformLoginService
- Since:
- 6.0
- Author:
- Elias Ricken de Medeiros, Matthieu Chaffotte
-
Method Summary
-
Method Details
-
login
SPlatformSession login(String userName, String password) throws SPlatformLoginException, SInvalidPlatformCredentialsException login to the platform by userName and password- Parameters:
userName- name of userpassword- password of user- Returns:
- an SPlatformSession object
- Throws:
SPlatformLoginExceptionSInvalidPlatformCredentialsException- See Also:
-
logout
logout the platform by sessionId- Parameters:
sessionId- identifier of platform session- Throws:
SSessionNotFoundException
-
isValid
boolean isValid(long sessionId) Verify if a session is valid- Parameters:
sessionId- identifier of platform session- Returns:
- true if session is valid, false otherwise.
-