Package com.gigaspaces.security.spring
Class RoleBasedUserService
java.lang.Object
com.gigaspaces.security.spring.RoleBasedUserService
- All Implemented Interfaces:
org.springframework.security.core.userdetails.UserDetailsService
public class RoleBasedUserService
extends Object
implements org.springframework.security.core.userdetails.UserDetailsService
Implements
Defines a set of predefined roles mapped to specific privileges.
UserDetailsService and populates privileged authorities.
Defines a set of predefined roles mapped to specific privileges.
ROLE_ADMIN: MANAGE GRID, MANAGE PU, PROVISION PU, MONITOR JVM, MONITOR PU, SPACE READ.ROLE_DEVELOPER: PROVISION PU, MONITOR PU, SPACE READ.ROLE_ANALYST: MONITOR PU, SPACE READ.
- Since:
- 15.5
-
Constructor Summary
ConstructorsConstructorDescriptionRoleBasedUserService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService, Map<String, String> roles) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.userdetails.UserDetailsloadUserByUsername(String user)
-
Constructor Details
-
RoleBasedUserService
-
-
Method Details
-
loadUserByUsername
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String user) throws org.springframework.security.core.userdetails.UsernameNotFoundException - Specified by:
loadUserByUsernamein interfaceorg.springframework.security.core.userdetails.UserDetailsService- Throws:
org.springframework.security.core.userdetails.UsernameNotFoundException
-