Package at.letto.basespringboot.service
Class BaseLettoUserServiceBackup
java.lang.Object
at.letto.basespringboot.service.BaseLettoUserServiceBackup
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService
@Service
public class BaseLettoUserServiceBackup
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
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
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
-
BaseLettoUserServiceBackup
public BaseLettoUserServiceBackup()
-
-
Method Details
-
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
-