Package org.infinispan.security.mappers
Class ClusterRoleMapper
java.lang.Object
org.infinispan.security.mappers.ClusterRoleMapper
- All Implemented Interfaces:
MutablePrincipalRoleMapper
,PrincipalRoleMapper
- Direct Known Subclasses:
ClusterRoleMapper
ClusterRoleMapper. This class implements both a
MutablePrincipalRoleMapper
storing the mappings in a
persistent replicated internal cache named org.infinispan.ROLES- Since:
- 7.0
- Author:
- Tristan Tarrant
-
Field Details
-
CLUSTER_ROLE_MAPPER_CACHE
- See Also:
-
-
Constructor Details
-
ClusterRoleMapper
public ClusterRoleMapper()
-
-
Method Details
-
principalToRoles
Description copied from interface:PrincipalRoleMapper
Maps 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:
principalToRoles
in interfacePrincipalRoleMapper
- Returns:
- list of roles the principal belongs to
-
grant
- Specified by:
grant
in interfaceMutablePrincipalRoleMapper
-
deny
- Specified by:
deny
in interfaceMutablePrincipalRoleMapper
-
list
- Specified by:
list
in interfaceMutablePrincipalRoleMapper
-
listAll
- Specified by:
listAll
in interfaceMutablePrincipalRoleMapper
-