public final class NullRoleHierarchy extends java.lang.Object implements RoleHierarchy
Constructor and Description |
---|
NullRoleHierarchy() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<? extends GrantedAuthority> |
getReachableGrantedAuthorities(java.util.Collection<? extends GrantedAuthority> authorities)
Returns an array of all reachable authorities.
|
public java.util.Collection<? extends GrantedAuthority> getReachableGrantedAuthorities(java.util.Collection<? extends GrantedAuthority> authorities)
RoleHierarchy
Reachable authorities are the directly assigned authorities plus all authorities that are (transitively) reachable from them in the role hierarchy.
Example:
Role hierarchy: ROLE_A > ROLE_B > ROLE_C.
Directly assigned authority: ROLE_A.
Reachable authorities: ROLE_A, ROLE_B, ROLE_C.
getReachableGrantedAuthorities
in interface RoleHierarchy
authorities
- - List of the directly assigned authorities.