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() |
int |
getPriority() |
AccessToken |
transformAccessToken(AccessToken token,
ProtocolMapperModel mappingModel,
KeycloakSession session,
UserSessionModel userSession,
ClientSessionContext clientSessionCtx) |
close, create, getProtocol, init, postInit, setClaim, setClaim, transformIDToken, transformUserInfoToken
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 int getPriority()
getPriority
in interface ProtocolMapper
public AccessToken transformAccessToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)
transformAccessToken
in interface OIDCAccessTokenMapper
transformAccessToken
in class AbstractOIDCProtocolMapper
public static ProtocolMapperModel create(String name, String role, String newName)
Copyright © 2019 JBoss by Red Hat. All rights reserved.