public class RegexRoleMapper extends Object implements RoleMapper
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.
Modifier and Type | Class and Description |
---|---|
static class |
RegexRoleMapper.Builder
Construct a new
RegexRoleMapper.Builder for creating the RegexRoleMapper . |
IDENTITY_ROLE_MAPPER
Modifier and Type | Method and Description |
---|---|
Roles |
mapRoles(Roles rolesToMap)
Returns a set of strings representing the roles mapped from the given roles in their raw form.
|
public Roles mapRoles(Roles rolesToMap)
RoleMapper
mapRoles
in interface RoleMapper
rolesToMap
- the roles in their raw form to apply mappingCopyright © 2021 JBoss by Red Hat. All rights reserved.