Package org.bonitasoft.engine.core.login
Class SecuredLoginServiceImpl
- java.lang.Object
-
- org.bonitasoft.engine.core.login.SecuredLoginServiceImpl
-
- All Implemented Interfaces:
LoginService
@Service public class SecuredLoginServiceImpl extends java.lang.Object implements LoginService
- Author:
- Matthieu Chaffotte, Anthony Birembaut
-
-
Constructor Summary
Constructors Constructor Description SecuredLoginServiceImpl(GenericAuthenticationService authenticationService, SessionService sessionService, IdentityService identityService, TechnicalUser technicalUser, ProfileService profileService, PermissionsBuilder permissionsBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisValid(long sessionId)SSessionlogin(java.util.Map<java.lang.String,java.io.Serializable> credentials)generic login approach to handle outer authentication service like CAS or OAuth or whatever...voidlogout(long sessionId)
-
-
-
Constructor Detail
-
SecuredLoginServiceImpl
public SecuredLoginServiceImpl(GenericAuthenticationService authenticationService, SessionService sessionService, IdentityService identityService, TechnicalUser technicalUser, ProfileService profileService, PermissionsBuilder permissionsBuilder)
-
-
Method Detail
-
login
public SSession login(java.util.Map<java.lang.String,java.io.Serializable> credentials) throws SLoginException, SUserNotFoundException
Description copied from interface:LoginServicegeneric login approach to handle outer authentication service like CAS or OAuth or whatever...- Specified by:
loginin interfaceLoginService- Parameters:
credentials- the parameters to use to login- Returns:
- the session created if login succeeds
- Throws:
SLoginException- if login failsSUserNotFoundException- if the user does not exist in the database
-
logout
public void logout(long sessionId) throws SSessionNotFoundException- Specified by:
logoutin interfaceLoginService- Throws:
SSessionNotFoundException
-
isValid
public boolean isValid(long sessionId)
- Specified by:
isValidin interfaceLoginService
-
-