public class AuthenticationServiceImpl extends AbstractAgrosystService implements AuthenticationService
| Modifier and Type | Field and Description |
|---|---|
protected AgrosystUserTopiaDao |
agrosystUserDao |
protected AuthorizationService |
authorizationService |
protected StoredTokenTopiaDao |
storedTokenDao |
protected static Map<String,String> |
USER_TOKENS |
context__PARANAMER_DATA| Constructor and Description |
|---|
AuthenticationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
UserDto |
getAuthenticatedUser(String token) |
String |
getAuthenticatedUserId(String token) |
long |
getConnectedUsersCount() |
UserDto |
login(String email,
String password) |
void |
logout(String token) |
void |
setAgrosystUserDao(AgrosystUserTopiaDao agrosystUserDao) |
void |
setAuthorizationService(AuthorizationService authorizationService) |
void |
setStoredTokenDao(StoredTokenTopiaDao storedTokenDao) |
easyBind, easyBind, easyBindNoDelete, finalize, getConfig, getContext, getPersistenceContext, getSecurityContext, getSecurityContextAsUser, getTransaction, newInstance, setContextprotected AuthorizationService authorizationService
protected StoredTokenTopiaDao storedTokenDao
protected AgrosystUserTopiaDao agrosystUserDao
public void setAuthorizationService(AuthorizationService authorizationService)
public void setStoredTokenDao(StoredTokenTopiaDao storedTokenDao)
public void setAgrosystUserDao(AgrosystUserTopiaDao agrosystUserDao)
public UserDto login(String email, String password)
login in interface AuthenticationServicepublic void logout(String token)
logout in interface AuthenticationServicepublic String getAuthenticatedUserId(String token)
getAuthenticatedUserId in interface AuthenticationServicepublic UserDto getAuthenticatedUser(String token)
getAuthenticatedUser in interface AuthenticationServicepublic long getConnectedUsersCount()
getConnectedUsersCount in interface AuthenticationServiceCopyright © 2013–2015 Inra. All rights reserved.