
public class MappedRoleMapper extends Object implements RoleMapper
| Modifier and Type | Class and Description |
|---|---|
static class |
MappedRoleMapper.Builder
A builder for map backed role mappers.
|
IDENTITY_ROLE_MAPPER| Constructor and Description |
|---|
MappedRoleMapper()
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
static MappedRoleMapper.Builder |
builder()
Construct a new
MappedRoleMapper.Builder for creating the MappedRoleMapper. |
void |
initialize(Map<String,String> configuration)
Custom component method.
|
Roles |
mapRoles(Roles rolesToMap)
Returns a set of strings representing the roles mapped from the given roles in their raw form.
|
public MappedRoleMapper()
MappedRoleMapper.Builder instead.
You must call #initialize(Map) to configure mapping map before usage.MappedRoleMapper.Builderpublic void initialize(Map<String,String> configuration)
configuration - map of mapping rules where key is delegate role and value is whitespace separated list of new rolesIllegalStateException - when called mapper is already initializedpublic Roles mapRoles(Roles rolesToMap)
RoleMappermapRoles in interface RoleMapperrolesToMap - the roles in their raw form to apply mappingpublic static MappedRoleMapper.Builder builder()
MappedRoleMapper.Builder for creating the MappedRoleMapper.MappedRoleMapper.Builder for creating the MappedRoleMapper.Copyright © 2020 JBoss by Red Hat. All rights reserved.