Package org.apache.activemq.shiro.authz
Interface ActionPermissionResolver
-
- All Known Implementing Classes:
DestinationActionPermissionResolver
public interface ActionPermissionResolver
AnActionPermissionResolver
will inspect anAction
and returnPermission
s that must be granted to aSubject
in order for theSubject
to execute the action. If aSubject
is not granted all of the returned permissions, theAction
will not be executed.- Since:
- 5.10.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<org.apache.shiro.authz.Permission>
getPermissions(Action action)
Returns allPermission
s that must be granted to aSubject
in order for theSubject
to execute the action, or an empty collection if no permissions are required.
-
-
-
Method Detail
-
getPermissions
Collection<org.apache.shiro.authz.Permission> getPermissions(Action action)
Returns allPermission
s that must be granted to aSubject
in order for theSubject
to 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
Permission
s that must be granted to aSubject
in order for theSubject
to execute the action, or an empty collection if no permissions are required.
-
-