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 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.

To be used as an additional Spring authentication provider. See usage of Spring based security: GS_HOME/config/security/spring-security.properties GS_HOME/config/security/security-config.xml
Since:
15.5
  • Constructor Details

    • RoleBasedUserService

      public RoleBasedUserService(org.springframework.security.core.userdetails.UserDetailsService userDetailsService, Map<String,String> roles)
  • Method Details

    • loadUserByUsername

      public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String user) throws org.springframework.security.core.userdetails.UsernameNotFoundException
      Specified by:
      loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsService
      Throws:
      org.springframework.security.core.userdetails.UsernameNotFoundException