public class Roles
extends java.lang.Object
| Constructor and Description | 
|---|
| Roles() | 
| Modifier and Type | Method and Description | 
|---|---|
| static java.util.Set<RoleResource> | getRoles(RoleResource primaryRole)Get all roles granted to the supplied Role, including both directly granted
 and inherited roles. | 
| static boolean | hasSuperuserStatus(RoleResource role)Returns true if the supplied role or any other role granted to it
 (directly or indirectly) has superuser status. | 
public static java.util.Set<RoleResource> getRoles(RoleResource primaryRole)
roles_validity_in_ms > 0primaryRole - the Rolepublic static boolean hasSuperuserStatus(RoleResource role)
role - the primary roleCopyright © 2018 The Apache Software Foundation