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 SummaryNested Classes Modifier and Type Class Description static classRegexRoleMapper.BuilderConstruct a newRegexRoleMapper.Builderfor creating theRegexRoleMapper.
 - 
Field SummaryFields Modifier and Type Field Description private booleankeepNonMappedprivate Patternpatternprivate booleanreplaceAllprivate Stringreplacement- 
Fields inherited from interface org.wildfly.security.authz.RoleMapperIDENTITY_ROLE_MAPPER
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description privateRegexRoleMapper(RegexRoleMapper.Builder builder)
 - 
Method SummaryAll 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.wildfly.security.authz.RoleMapperand, minus, or, xor
 
- 
 
- 
- 
- 
Constructor Detail- 
RegexRoleMapperprivate RegexRoleMapper(RegexRoleMapper.Builder builder) 
 
- 
 - 
Method Detail- 
mapRolespublic 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 interface- RoleMapper
- Parameters:
- rolesToMap- the roles in their raw form to apply mapping
- Returns:
- the mapped role set
 
 
- 
 
-