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