Class SpringSecurityRolePrincipal

  • All Implemented Interfaces:
    Group, Principal

    public class SpringSecurityRolePrincipal
    extends Object
    implements Group
    In Spring Security, there are users and roles. This class represents a Spring Security role. This class is the Jackrabbit representation of a org.springframework.security.acls.sid.GrantedAuthoritySid. This class was required as no Group implementations were found that could re-used.

    Why Group and not Principal? Group is more like a Spring Security role in that there can be "members" that have that role assigned. On the client side, there is code that tests to see if the principal is a group and if so creates a Spring Security role.

    Author:
    mlowery