- All Implemented Interfaces:
- org.kie.api.task.UserGroupCallback
public class JAASUserGroupCallbackImpl
extends Object
implements org.kie.internal.task.api.UserGroupCallback
JAAS based implementation of user group callback dedicated when using LocalTaskService
in container such as JBoss AS. It relies on JACC api to collect information on currently
logged on user when querying for tasks.
JACC exposes following named context in PolicyContext:
javax.security.auth.Subject.container
This returns Subject
instance for currently authenticated user and next principals
will be examined to find instances of Group
and with given rolePrincipleName (by default Roles).
By default it works with JBoss Application Servers as it uses specific principal name to find the groups.