public interface ActionPermissionResolver
ActionPermissionResolver
will inspect an Action
and return
Permission
s 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.Modifier and Type | Method and Description |
---|---|
Collection<org.apache.shiro.authz.Permission> |
getPermissions(Action action)
Returns all
Permission s that must be granted to a
Subject in order for the Subject to execute the action, or
an empty collection if no permissions are required. |
Collection<org.apache.shiro.authz.Permission> getPermissions(Action action)
Permission
s that must be granted to a
Subject
in order for the Subject
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.action
- the action attemptedPermission
s that must be granted to a
Subject
in order for the Subject
to execute the action,
or an empty collection if no permissions are required.Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.