org.bonitasoft.engine.core.login
public class SecuredLoginServiceImpl extends Object implements org.bonitasoft.engine.core.login.LoginService
| Constructor and Description |
|---|
SecuredLoginServiceImpl(org.bonitasoft.engine.authentication.AuthenticationService authenticationService,
SessionService sessionService,
org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor,
IdentityService identityService)
Deprecated.
|
SecuredLoginServiceImpl(org.bonitasoft.engine.authentication.GenericAuthenticationService genericAuthenticationService,
SessionService sessionService,
org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor,
IdentityService identityService) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
authenticationFailed()
process the failed SpringTenantFileSystemBeanAccessor.java:127authentication behaviour
|
protected TechnicalUser |
getTechnicalUser(long tenantId) |
boolean |
isValid(long sessionId) |
org.bonitasoft.engine.session.model.SSession |
login(long tenantId,
String userName,
String password)
Deprecated.
|
org.bonitasoft.engine.session.model.SSession |
login(Map<String,Serializable> credentials) |
protected String |
loginChoosingAppropriateAuthenticationService(Map<String,Serializable> credentials)
login to the internal authentication service if it is not null or to the Generic Authentication Service
|
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 |
@Deprecated public SecuredLoginServiceImpl(org.bonitasoft.engine.authentication.AuthenticationService authenticationService, SessionService sessionService, org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor, IdentityService identityService)
public SecuredLoginServiceImpl(org.bonitasoft.engine.authentication.GenericAuthenticationService genericAuthenticationService,
SessionService sessionService,
org.bonitasoft.engine.sessionaccessor.SessionAccessor sessionAccessor,
IdentityService identityService)
@Deprecated public org.bonitasoft.engine.session.model.SSession login(long tenantId, String userName, String password) throws org.bonitasoft.engine.core.login.SLoginException
login in interface org.bonitasoft.engine.core.login.LoginServiceorg.bonitasoft.engine.core.login.SLoginExceptionpublic org.bonitasoft.engine.session.model.SSession login(Map<String,Serializable> credentials) throws org.bonitasoft.engine.core.login.SLoginException
login in interface org.bonitasoft.engine.core.login.LoginServiceorg.bonitasoft.engine.core.login.SLoginExceptionprotected void authenticationFailed()
throws org.bonitasoft.engine.core.login.SLoginException
authenticationException - the authentication that may have risen from authentication serviceSLoginException - the appropriate exceptionprotected String loginChoosingAppropriateAuthenticationService(Map<String,Serializable> credentials) throws org.bonitasoft.engine.authentication.AuthenticationException, org.bonitasoft.engine.core.login.SLoginException
credentials - the credentials to use to loginorg.bonitasoft.engine.authentication.AuthenticationExceptionorg.bonitasoft.engine.core.login.SLoginExceptionprotected 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.SLoginExceptionCopyright © 2014 Bonitasoft S.A.. All rights reserved.