Class PlatformLoginServiceImpl
java.lang.Object
org.bonitasoft.engine.core.platform.login.impl.PlatformLoginServiceImpl
- All Implemented Interfaces:
PlatformLoginService
- Author:
- Elias Ricken de Medeiros, Feng Hui, Matthieu Chaffotte
-
Constructor Summary
ConstructorsConstructorDescriptionPlatformLoginServiceImpl(PlatformAuthenticationService platformAuthenticationService, PlatformSessionService platformSessionService) -
Method Summary
-
Constructor Details
-
PlatformLoginServiceImpl
public PlatformLoginServiceImpl(PlatformAuthenticationService platformAuthenticationService, PlatformSessionService platformSessionService)
-
-
Method Details
-
login
public SPlatformSession login(String userName, String password) throws SPlatformLoginException, SInvalidPlatformCredentialsException Description copied from interface:PlatformLoginServicelogin to the platform by userName and password- Specified by:
loginin interfacePlatformLoginService- Parameters:
userName- name of userpassword- password of user- Returns:
- an SPlatformSession object
- Throws:
SPlatformLoginExceptionSInvalidPlatformCredentialsException- See Also:
-
logout
Description copied from interface:PlatformLoginServicelogout the platform by sessionId- Specified by:
logoutin interfacePlatformLoginService- Parameters:
sessionId- identifier of platform session- Throws:
SSessionNotFoundException
-
isValid
public boolean isValid(long sessionId) Description copied from interface:PlatformLoginServiceVerify if a session is valid- Specified by:
isValidin interfacePlatformLoginService- Parameters:
sessionId- identifier of platform session- Returns:
- true if session is valid, false otherwise.
-