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() |
int |
getPriority()
Priority of this protocolMapper implementation.
|
AccessToken |
transformAccessToken(AccessToken token,
ProtocolMapperModel mappingModel,
KeycloakSession session,
UserSessionModel userSession,
ClientSessionContext clientSessionCtx) |
close, create, getProtocol, init, postInit, setClaim, setClaim, setClaim, transformAccessTokenResponse, transformIDToken, transformUserInfoTokenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateConfigorderpublic static final String ROLE_CONFIG
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 int getPriority()
ProtocolMappergetPriority in interface ProtocolMapperpublic AccessToken transformAccessToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)
transformAccessToken in interface OIDCAccessTokenMappertransformAccessToken in class AbstractOIDCProtocolMapperpublic static ProtocolMapperModel create(String name, String role)
Copyright © 2021 JBoss by Red Hat. All rights reserved.