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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPriority, validateConfig
order
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 ConfiguredProvider
public String getId()
getId
in interface ProviderFactory<ProtocolMapper>
public String getDisplayType()
getDisplayType
in interface ProtocolMapper
public String getDisplayCategory()
getDisplayCategory
in interface ProtocolMapper
public String getHelpText()
getHelpText
in interface ConfiguredProvider
public String mapName(ProtocolMapperModel model, RoleModel roleModel)
mapName
in interface SAMLRoleNameMapper
public static ProtocolMapperModel create(String name, String role, String newName)
public String getProtocol()
getProtocol
in interface ProtocolMapper
public void close()
ProviderFactory
close
in interface Provider
close
in interface ProviderFactory<ProtocolMapper>
public void init(Config.Scope config)
ProviderFactory
init
in interface ProviderFactory<ProtocolMapper>
public final ProtocolMapper create(KeycloakSession session)
create
in interface ProviderFactory<ProtocolMapper>
public void postInit(KeycloakSessionFactory factory)
ProviderFactory
postInit
in interface ProviderFactory<ProtocolMapper>
Copyright © 2021 JBoss by Red Hat. All rights reserved.