Package org.apache.activemq.shiro.authz
Interface ActionPermissionResolver
- All Known Implementing Classes:
DestinationActionPermissionResolver
public interface ActionPermissionResolver
An
ActionPermissionResolver will inspect an Action and return
Permissions that must be granted to a Subject in order for the
Subject to execute the action.
If a Subject is not granted all of the returned permissions, the Action will not be executed.- Since:
- 5.10.0
-
Method Summary
Modifier and TypeMethodDescriptionCollection<org.apache.shiro.authz.Permission>getPermissions(Action action) Returns allPermissions that must be granted to aSubjectin order for theSubjectto execute the action, or an empty collection if no permissions are required.
-
Method Details
-
getPermissions
Returns allPermissions that must be granted to aSubjectin order for theSubjectto execute the action, or an empty collection if no permissions are required. Most implementations will probably return a single Permission, but multiple permissions are possible, especially if the Action represents behavior attempted on a Composite Destination.- Parameters:
action- the action attempted- Returns:
- all
Permissions that must be granted to aSubjectin order for theSubjectto execute the action, or an empty collection if no permissions are required.
-