public class RoleNameMapper extends AbstractOIDCProtocolMapper implements OIDCAccessTokenMapper
| Modifier and Type | Field and Description |
|---|---|
static String |
NEW_ROLE_NAME |
static String |
PROVIDER_ID |
static String |
ROLE_CONFIG |
TOKEN_MAPPER_CATEGORY| Constructor and Description |
|---|
RoleNameMapper() |
| Modifier and Type | Method and Description |
|---|---|
static ProtocolMapperModel |
create(String name,
String role,
String newName) |
List<ProviderConfigProperty> |
getConfigProperties() |
String |
getDisplayCategory() |
String |
getDisplayType() |
String |
getHelpText() |
String |
getId() |
AccessToken |
transformAccessToken(AccessToken token,
ProtocolMapperModel mappingModel,
KeycloakSession session2,
UserSessionModel userSession2,
ClientSessionModel clientSessio2n) |
close, create, getProtocol, init, postInitpublic 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 AccessToken transformAccessToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session2, UserSessionModel userSession2, ClientSessionModel clientSessio2n)
transformAccessToken in interface OIDCAccessTokenMapperpublic static ProtocolMapperModel create(String name, String role, String newName)
Copyright © 2016 JBoss by Red Hat. All rights reserved.