Class ClusterRoleMapper
java.lang.Object
org.infinispan.security.mappers.ClusterRoleMapper
- All Implemented Interfaces:
Lifecycle
,MutablePrincipalRoleMapper
,PrincipalRoleMapper
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 TypeMethodDescriptionvoid
void
void
listAll()
listPrincipalsByRole
(String role) void
nameRewriter
(NameRewriter nameRewriter) principalToRoles
(Principal principal) Maps a principal name to a set of role names.void
start()
Invoked on component startvoid
stop()
Invoked on component stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.security.PrincipalRoleMapper
setContext
-
Field Details
-
CLUSTER_ROLE_MAPPER_CACHE
- See Also:
-
-
Constructor Details
-
ClusterRoleMapper
public ClusterRoleMapper()
-
-
Method Details
-
start
-
stop
-
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
- Parameters:
principal
-- Returns:
- list of roles the principal belongs to
-
grant
- Specified by:
grant
in interfaceMutablePrincipalRoleMapper
-
deny
- Specified by:
deny
in interfaceMutablePrincipalRoleMapper
-
denyAll
- Specified by:
denyAll
in interfaceMutablePrincipalRoleMapper
-
list
- Specified by:
list
in interfaceMutablePrincipalRoleMapper
-
listAll
- Specified by:
listAll
in interfaceMutablePrincipalRoleMapper
-
listPrincipals
- Specified by:
listPrincipals
in interfaceMutablePrincipalRoleMapper
-
listPrincipalsAndRoleSet
- Specified by:
listPrincipalsAndRoleSet
in interfaceMutablePrincipalRoleMapper
-
listPrincipalsByRole
- Specified by:
listPrincipalsByRole
in interfaceMutablePrincipalRoleMapper
-
nameRewriter
-
nameRewriter
-