Package org.graylog.security
Interface PermissionAndRoleResolver
- All Known Implementing Classes:
DefaultPermissionAndRoleResolver
public interface PermissionAndRoleResolver
Resolves a principal to specific permissions based on grants.
-
Method Summary
Modifier and TypeMethodDescriptionresolveGrantees
(GRN principal) Set<org.apache.shiro.authz.Permission>
resolvePermissionsForPrincipal
(GRN principal) Returns resolved permissions for the given principal.resolveRolesForPrincipal
(GRN principal) Returns roles for the given principal.
-
Method Details
-
resolvePermissionsForPrincipal
Returns resolved permissions for the given principal.- Parameters:
principal
- the principal- Returns:
- the resolved permissions
-
resolveRolesForPrincipal
Returns roles for the given principal.- Parameters:
principal
- the principal- Returns:
- the resolved roleIds
-
resolveGrantees
-