public class SecuredLoginServiceImpl extends Object implements org.bonitasoft.engine.core.login.LoginService
| Constructor and Description |
|---|
SecuredLoginServiceImpl(org.bonitasoft.engine.authentication.GenericAuthenticationService authenticationService,
SessionService sessionService,
org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor,
IdentityService identityService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService tenantTechnicalLoggerService) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
authenticationFailed()
Processes the failed authentication behaviour.
|
protected void |
debugLog(String message) |
protected TechnicalUser |
getTechnicalUser(long tenantId) |
boolean |
isValid(long sessionId) |
org.bonitasoft.engine.session.model.SSession |
login(Map<String,Serializable> credentials) |
void |
logout(long sessionId) |
protected String |
retrievePasswordFromCredentials(Map<String,Serializable> credentials)
retrieve password from credentials assuming it is stored under the
AuthenticationConstants.BASIC_PASSWORD key |
protected String |
retrieveUsernameFromCredentials(Map<String,Serializable> credentials)
retrieve username from credentials assuming it is stored under the
AuthenticationConstants.BASIC_USERNAME key |
public SecuredLoginServiceImpl(org.bonitasoft.engine.authentication.GenericAuthenticationService authenticationService,
SessionService sessionService,
org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor,
IdentityService identityService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService tenantTechnicalLoggerService)
public org.bonitasoft.engine.session.model.SSession login(Map<String,Serializable> credentials) throws org.bonitasoft.engine.core.login.SLoginException, SUserNotFoundException
login in interface org.bonitasoft.engine.core.login.LoginServiceorg.bonitasoft.engine.core.login.SLoginExceptionSUserNotFoundExceptionprotected void authenticationFailed()
throws org.bonitasoft.engine.core.login.SLoginException
SLoginException - the appropriate exceptionprotected String retrievePasswordFromCredentials(Map<String,Serializable> credentials) throws org.bonitasoft.engine.core.login.SLoginException
AuthenticationConstants.BASIC_PASSWORD keycredentials - the credentials to checkSLoginException - if password is absent or if credentials is nullprotected String retrieveUsernameFromCredentials(Map<String,Serializable> credentials) throws org.bonitasoft.engine.core.login.SLoginException
AuthenticationConstants.BASIC_USERNAME keycredentials - the credentials to checkSLoginException - if username is absent, blank or if credentials is nullpublic void logout(long sessionId)
throws SSessionNotFoundException
logout in interface org.bonitasoft.engine.core.login.LoginServiceSSessionNotFoundExceptionpublic boolean isValid(long sessionId)
isValid in interface org.bonitasoft.engine.core.login.LoginServiceprotected TechnicalUser getTechnicalUser(long tenantId) throws org.bonitasoft.engine.core.login.SLoginException
org.bonitasoft.engine.core.login.SLoginExceptionprotected void debugLog(String message)
Copyright © 2017 Bonitasoft S.A.. All rights reserved.