Package org.wildfly.security.authz
Class RegexRoleMapper
java.lang.Object
org.wildfly.security.authz.RegexRoleMapper
- All Implemented Interfaces:
RoleMapper
A pattern role mapper.
Role mapper that maps roles that contain Pattern with replacement. Pattern can capture groups that replacement string can use. Can be used to replace all occurrences of the pattern in role or only the first occurrence.
- Author:
- Diana Vilkolakova
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classConstruct a newRegexRoleMapper.Builderfor creating theRegexRoleMapper. -
Field Summary
Fields inherited from interface org.wildfly.security.authz.RoleMapper
IDENTITY_ROLE_MAPPER -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.security.authz.RoleMapper
and, minus, or, xor
-
Method Details
-
mapRoles
Description copied from interface:RoleMapperReturns a set of strings representing the roles mapped from the given roles in their raw form.- Specified by:
mapRolesin interfaceRoleMapper- Parameters:
rolesToMap- the roles in their raw form to apply mapping- Returns:
- the mapped role set
-