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() |
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) |
String |
mapName(ProtocolMapperModel model,
RoleModel roleModel) |
void |
postInit(KeycloakSessionFactory factory) |
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()
close
in interface Provider
close
in interface ProviderFactory<ProtocolMapper>
public void init(Config.Scope config)
init
in interface ProviderFactory<ProtocolMapper>
public final ProtocolMapper create(KeycloakSession session)
create
in interface ProviderFactory<ProtocolMapper>
public void postInit(KeycloakSessionFactory factory)
postInit
in interface ProviderFactory<ProtocolMapper>
Copyright © 2019 JBoss by Red Hat. All rights reserved.