public class RoleNameMapper extends Object implements SAMLRoleNameMapper, ProtocolMapper
| Modifier and Type | Field and Description |
|---|---|
static String |
NEW_ROLE_NAME |
static String |
PROVIDER_ID |
static String |
ROLE_CONFIG |
| Constructor and Description |
|---|
RoleNameMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This is called when the server shuts down.
|
ProtocolMapper |
create(KeycloakSession session) |
static ProtocolMapperModel |
create(String name,
String role,
String newName) |
List<ProviderConfigProperty> |
getConfigProperties() |
String |
getDisplayCategory() |
String |
getDisplayType() |
String |
getHelpText() |
String |
getId() |
String |
getProtocol() |
void |
init(Config.Scope config)
Only called once when the factory is first created.
|
String |
mapName(ProtocolMapperModel model,
RoleModel roleModel) |
void |
postInit(KeycloakSessionFactory factory)
Called after all provider factories have been initialized
|
public static final String ROLE_CONFIG
public static String NEW_ROLE_NAME
public static final String PROVIDER_ID
public List<ProviderConfigProperty> getConfigProperties()
getConfigProperties in interface ConfiguredProviderpublic String getId()
getId in interface ProviderFactory<ProtocolMapper>public String getDisplayType()
getDisplayType in interface ProtocolMapperpublic String getDisplayCategory()
getDisplayCategory in interface ProtocolMapperpublic String getHelpText()
getHelpText in interface ConfiguredProviderpublic String mapName(ProtocolMapperModel model, RoleModel roleModel)
mapName in interface SAMLRoleNameMapperpublic static ProtocolMapperModel create(String name, String role, String newName)
public String getProtocol()
getProtocol in interface ProtocolMapperpublic void close()
ProviderFactoryclose in interface Providerclose in interface ProviderFactory<ProtocolMapper>public void init(Config.Scope config)
ProviderFactoryinit in interface ProviderFactory<ProtocolMapper>public final ProtocolMapper create(KeycloakSession session)
create in interface ProviderFactory<ProtocolMapper>public void postInit(KeycloakSessionFactory factory)
ProviderFactorypostInit in interface ProviderFactory<ProtocolMapper>Copyright © 2016 JBoss by Red Hat. All rights reserved.