Package org.infinispan.security.mappers
Class ClusterRoleMapper
- java.lang.Object
-
- org.infinispan.security.mappers.ClusterRoleMapper
-
- All Implemented Interfaces:
PrincipalRoleMapper
- Direct Known Subclasses:
ClusterRoleMapper
public class ClusterRoleMapper extends Object implements PrincipalRoleMapper
ClusterRoleMapper.- Since:
- 7.0
- Author:
- Tristan Tarrant
-
-
Constructor Summary
Constructors Constructor Description ClusterRoleMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeny(String roleName, String principalName)voidgrant(String roleName, String principalName)Set<String>list(String principalName)StringlistAll()Set<String>principalToRoles(Principal principal)Maps a principal name to a set of role names.voidsetContext(PrincipalRoleMapperContext context)Sets the context for thisPrincipalRoleMapper
-
-
-
Method Detail
-
principalToRoles
public Set<String> principalToRoles(Principal principal)
Description copied from interface:PrincipalRoleMapperMaps a principal name to a set of role names. The principal name depends on the source of the principal itself. For example, in LDAP a Principal might use the Distinguished Name format (DN). The mapper should return null if it does not recognize the principal.- Specified by:
principalToRolesin interfacePrincipalRoleMapper- Returns:
- list of roles the principal belongs to
-
setContext
public void setContext(PrincipalRoleMapperContext context)
Description copied from interface:PrincipalRoleMapperSets the context for thisPrincipalRoleMapper- Specified by:
setContextin interfacePrincipalRoleMapper
-
listAll
public String listAll()
-
-