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 Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprotected ConcurrentHashMap<String, RestUser> Liste aller Benutzer, welche sich an dem Server anmelden könnenprivate Stringprivate Stringprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities(RestUser restUser) org.springframework.security.core.userdetails.UserDetailsloadUserByUsername(String userName) voidvoidloadUserList(String gastPW, String gastRoles, String userPW, String userRoles, String adminPW, String adminRoles) voidupdateUser(String user, String password, String role) voidupdateUserEncryptedPassword(String user, String password) voidupdateUserPassword(String user, String password) voidupdateUserRoles(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:
loadUserByUsernamein 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
-