Class ElytronUserGroupAdapter
- java.lang.Object
-
- org.kie.server.services.jbpm.security.ElytronUserGroupAdapter
-
- All Implemented Interfaces:
org.jbpm.services.task.identity.adapter.UserGroupAdapter
public class ElytronUserGroupAdapter extends Object implements org.jbpm.services.task.identity.adapter.UserGroupAdapter
-
-
Constructor Summary
Constructors Constructor Description ElytronUserGroupAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<org.wildfly.security.auth.server.SecurityIdentity>getCurrentSecurityIdentity()List<String>getGroupsForUser(String userId)StringgetUserName()booleanrunAsPrincipalExists(String runAsPrincipal)List<String>toPrincipalRoles(String userId)List<String>toRoles(org.wildfly.security.auth.server.SecurityIdentity securityIdentity)List<String>toRunAsPrincipalRoles(String userId, boolean authenticate)
-
-
-
Method Detail
-
getGroupsForUser
public List<String> getGroupsForUser(String userId)
- Specified by:
getGroupsForUserin interfaceorg.jbpm.services.task.identity.adapter.UserGroupAdapter
-
toRunAsPrincipalRoles
public List<String> toRunAsPrincipalRoles(String userId, boolean authenticate)
-
getUserName
public String getUserName()
-
toRoles
public List<String> toRoles(org.wildfly.security.auth.server.SecurityIdentity securityIdentity)
-
runAsPrincipalExists
public boolean runAsPrincipalExists(String runAsPrincipal) throws org.wildfly.security.auth.server.RealmUnavailableException
- Throws:
org.wildfly.security.auth.server.RealmUnavailableException
-
getCurrentSecurityIdentity
public Optional<org.wildfly.security.auth.server.SecurityIdentity> getCurrentSecurityIdentity()
-
-