Class RoleNameMapper
java.lang.Object
org.keycloak.protocol.saml.mappers.RoleNameMapper
- All Implemented Interfaces:
ProtocolMapper
,SAMLRoleNameMapper
,ConfiguredProvider
,Provider
,ProviderFactory<ProtocolMapper>
Map an assigned role to a different position and name in the token
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
This is called when the server shuts down.static ProtocolMapperModel
final ProtocolMapper
create
(KeycloakSession session) getId()
void
init
(Config.Scope config) Only called once when the factory is first created.mapName
(ProtocolMapperModel model, RoleModel roleModel) void
postInit
(KeycloakSessionFactory factory) Called after all provider factories have been initializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfig
Methods inherited from interface org.keycloak.protocol.ProtocolMapper
getEffectiveModel, getPriority, validateConfig
Methods inherited from interface org.keycloak.provider.ProviderFactory
getConfigMetadata, order
-
Field Details
-
ROLE_CONFIG
- See Also:
-
NEW_ROLE_NAME
-
PROVIDER_ID
- See Also:
-
-
Constructor Details
-
RoleNameMapper
public RoleNameMapper()
-
-
Method Details
-
getConfigProperties
- Specified by:
getConfigProperties
in interfaceConfiguredProvider
-
getId
- Specified by:
getId
in interfaceProviderFactory<ProtocolMapper>
-
getDisplayType
- Specified by:
getDisplayType
in interfaceProtocolMapper
-
getDisplayCategory
- Specified by:
getDisplayCategory
in interfaceProtocolMapper
-
getHelpText
- Specified by:
getHelpText
in interfaceConfiguredProvider
-
mapName
- Specified by:
mapName
in interfaceSAMLRoleNameMapper
-
create
-
getProtocol
- Specified by:
getProtocol
in interfaceProtocolMapper
-
close
public void close()Description copied from interface:ProviderFactory
This is called when the server shuts down.- Specified by:
close
in interfaceProvider
- Specified by:
close
in interfaceProviderFactory<ProtocolMapper>
-
init
Description copied from interface:ProviderFactory
Only called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
init
in interfaceProviderFactory<ProtocolMapper>
-
create
- Specified by:
create
in interfaceProviderFactory<ProtocolMapper>
-
postInit
Description copied from interface:ProviderFactory
Called after all provider factories have been initialized- Specified by:
postInit
in interfaceProviderFactory<ProtocolMapper>
-