...
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
interface AuthEnforcer { /** * Enforces authorization for the specified {@link Principal} for the specified {@link Action} on the specified {@link EntityId}. * * @param principal the principal that performs the actions. This could be a user, group or a role * @param entity the entity on which an action is being performed * @param action the action being performed * @throws AuthorizationException if the principal is not authorized to perform action on the entity */ void enforce(Principal Principal, EntityEntityId entity, Action action) throws AuthorizationException; } |
...