Interface PlatformLoginService
-
- All Known Implementing Classes:
PlatformLoginServiceImpl
public interface PlatformLoginService- Since:
- 6.0
- Author:
- Elias Ricken de Medeiros, Matthieu Chaffotte
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisValid(long sessionId)Verify if a session is validSPlatformSessionlogin(java.lang.String userName, java.lang.String password)login to the platform by userName and passwordvoidlogout(long sessionId)logout the platform by sessionId
-
-
-
Method Detail
-
login
SPlatformSession login(java.lang.String userName, java.lang.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:
SPlatformSession
-
logout
void logout(long sessionId) throws SSessionNotFoundExceptionlogout 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.
-
-