Package at.letto.basespringboot.security
Class BaseLettoUserDetailsService
java.lang.Object
at.letto.basespringboot.security.BaseLettoUserDetailsService
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService
@Service
public class BaseLettoUserDetailsService
extends Object
implements org.springframework.security.core.userdetails.UserDetailsService
User-Service for receiving authentication-information of users
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
private String
private String
private String
private String
private String
private String
private String
private String
private String
protected ConcurrentHashMap
<String, RestUser> Liste aller Benutzer, welche sich an dem Server anmelden könnenprivate String
private String
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Collection
<? extends org.springframework.security.core.GrantedAuthority> getAuthorities
(RestUser restUser) org.springframework.security.core.userdetails.UserDetails
loadUserByUsername
(String userName) void
void
loadUserList
(String gastPW, String gastRoles, String userPW, String userRoles, String adminPW, String adminRoles) void
updateUser
(String user, String password, String role) void
updateUserEncryptedPassword
(String user, String password) void
updateUserPassword
(String user, String password) void
updateUserRoles
(String user, String role)
-
Field Details
-
ROLE_GAST
- See Also:
-
ROLE_USER
- See Also:
-
ROLE_ADMIN
- See Also:
-
ROLE_GLOBAL
- See Also:
-
ROLE_LETTO
- See Also:
-
ROLE_GAST_USER
- See Also:
-
ROLE_GAST_USER_ADMIN_GLOBAL
- See Also:
-
ROLE_GAST_LETTO
- See Also:
-
userGastPassword
-
userGastEncryptedPassword
-
userGastRoles
-
userUserPassword
-
userUserEncryptedPassword
-
userUserRoles
-
userAdminPassword
-
userAdminEncryptedPassword
-
userAdminRoles
-
userLettoPassword
-
userLettoEncryptedPassword
-
userLettoRoles
-
users
Liste aller Benutzer, welche sich an dem Server anmelden können
-
-
Constructor Details
-
BaseLettoUserDetailsService
public BaseLettoUserDetailsService()
-
-
Method Details
-
loadUserList
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String userName) throws org.springframework.security.core.userdetails.UsernameNotFoundException - Specified by:
loadUserByUsername
in interfaceorg.springframework.security.core.userdetails.UserDetailsService
- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-
getAuthorities
private Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities(RestUser restUser) -
loadUserList
public void loadUserList() -
updateUserPassword
-
updateUserEncryptedPassword
-
updateUserRoles
-
updateUser
-