Package org.bonitasoft.engine.core.login
Class SecuredLoginServiceImpl
java.lang.Object
org.bonitasoft.engine.core.login.SecuredLoginServiceImpl
- All Implemented Interfaces:
LoginService
- Author:
- Matthieu Chaffotte, Anthony Birembaut
-
Constructor Summary
ConstructorsConstructorDescriptionSecuredLoginServiceImpl(GenericAuthenticationService authenticationService, SessionService sessionService, IdentityService identityService, TechnicalUser technicalUser, ProfileService profileService, PermissionsBuilder permissionsBuilder) -
Method Summary
-
Constructor Details
-
SecuredLoginServiceImpl
public SecuredLoginServiceImpl(@Qualifier("entryPointAuthenticationService") GenericAuthenticationService authenticationService, SessionService sessionService, IdentityService identityService, TechnicalUser technicalUser, ProfileService profileService, PermissionsBuilder permissionsBuilder)
-
-
Method Details
-
login
public SSession login(Map<String, Serializable> credentials) throws SLoginException, SUserNotFoundExceptionDescription 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
- Specified by:
logoutin interfaceLoginService- Throws:
SSessionNotFoundException
-
isValid
public boolean isValid(long sessionId) - Specified by:
isValidin interfaceLoginService
-