public class SpringSecurityRolePrincipal extends Object implements Group
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.
Constructor and Description |
---|
SpringSecurityRolePrincipal(org.springframework.security.core.GrantedAuthority authority) |
SpringSecurityRolePrincipal(String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
addMember(Principal user) |
boolean |
equals(Object obj) |
String |
getName() |
int |
hashCode() |
boolean |
isMember(Principal member) |
Enumeration<? extends Principal> |
members() |
boolean |
removeMember(Principal user) |
String |
toString() |
public SpringSecurityRolePrincipal(String name)
public SpringSecurityRolePrincipal(org.springframework.security.core.GrantedAuthority authority)
public int hashCode()
public boolean equals(Object obj)
public String toString()
public Enumeration<? extends Principal> members()
public boolean removeMember(Principal user)
removeMember
in interface Group
Copyright © 2017 Hitachi Vantara. All rights reserved.