Package org.wildfly.security.authz
Class RegexRoleMapper
- java.lang.Object
-
- org.wildfly.security.authz.RegexRoleMapper
-
- All Implemented Interfaces:
RoleMapper
public class RegexRoleMapper extends Object implements 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 Classes Modifier and Type Class Description static classRegexRoleMapper.BuilderConstruct a newRegexRoleMapper.Builderfor creating theRegexRoleMapper.
-
Field Summary
-
Fields inherited from interface org.wildfly.security.authz.RoleMapper
IDENTITY_ROLE_MAPPER
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RolesmapRoles(Roles rolesToMap)Returns a set of strings representing the roles mapped from the given roles in their raw form.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.wildfly.security.authz.RoleMapper
and, minus, or, xor
-
-
-
-
Method Detail
-
mapRoles
public Roles mapRoles(Roles rolesToMap)
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
-
-