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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidlistAll()listPrincipalsByRole(String role) voidnameRewriter(NameRewriter nameRewriter) principalToRoles(Principal principal) Maps a principal name to a set of role names.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.security.PrincipalRoleMapper
setContext
-
Field Details
-
CLUSTER_ROLE_MAPPER_CACHE
- See Also:
-
-
Constructor Details
-
ClusterRoleMapper
public ClusterRoleMapper()
-
-
Method Details
-
principalToRoles
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- Parameters:
principal-- Returns:
- list of roles the principal belongs to
-
grant
- Specified by:
grantin interfaceMutablePrincipalRoleMapper
-
deny
- Specified by:
denyin interfaceMutablePrincipalRoleMapper
-
denyAll
- Specified by:
denyAllin interfaceMutablePrincipalRoleMapper
-
list
- Specified by:
listin interfaceMutablePrincipalRoleMapper
-
listAll
- Specified by:
listAllin interfaceMutablePrincipalRoleMapper
-
listPrincipals
- Specified by:
listPrincipalsin interfaceMutablePrincipalRoleMapper
-
listPrincipalsAndRoleSet
- Specified by:
listPrincipalsAndRoleSetin interfaceMutablePrincipalRoleMapper
-
listPrincipalsByRole
- Specified by:
listPrincipalsByRolein interfaceMutablePrincipalRoleMapper
-
nameRewriter
-
nameRewriter
-