public class JAASUserGroupCallbackImpl extends AbstractUserGroupInfo implements org.kie.api.task.UserGroupCallback
javax.security.auth.Subject.container
Subject instance for currently authenticated user and next principals
will be examined to find instances of Group and with given rolePrincipleName (by default Roles).
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_PROPERTIES_NAME |
| Constructor and Description |
|---|
JAASUserGroupCallbackImpl(boolean activate) |
JAASUserGroupCallbackImpl(String rolesPrincipleName) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addExternalUserGroupAdapter(UserGroupAdapter externalUserGroupAdapter) |
static void |
clearExternalUserGroupAdapter() |
boolean |
existsGroup(String groupId) |
boolean |
existsUser(String userId) |
List<String> |
getGroupsForUser(String userId) |
String |
getRolePrincipleName() |
protected Subject |
getSubjectFromContainer() |
void |
setRolePrincipleName(String rolePrincipleName) |
readPropertiesprotected static final String DEFAULT_PROPERTIES_NAME
public JAASUserGroupCallbackImpl(boolean activate)
public JAASUserGroupCallbackImpl(String rolesPrincipleName)
public static void addExternalUserGroupAdapter(UserGroupAdapter externalUserGroupAdapter)
public static void clearExternalUserGroupAdapter()
public String getRolePrincipleName()
public void setRolePrincipleName(String rolePrincipleName)
public boolean existsUser(String userId)
existsUser in interface org.kie.api.task.UserGroupCallbackpublic boolean existsGroup(String groupId)
existsGroup in interface org.kie.api.task.UserGroupCallbackpublic List<String> getGroupsForUser(String userId)
getGroupsForUser in interface org.kie.api.task.UserGroupCallbackprotected Subject getSubjectFromContainer()
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.