public class HardcodedClaim extends AbstractOIDCProtocolMapper implements OIDCAccessTokenMapper, OIDCIDTokenMapper
ProtocolMapper.ConfigProperty
Modifier and Type | Field and Description |
---|---|
static String |
CLAIM_VALUE |
static String |
PROVIDER_ID |
TOKEN_MAPPER_CATEGORY
Constructor and Description |
---|
HardcodedClaim() |
Modifier and Type | Method and Description |
---|---|
static ProtocolMapperModel |
create(String name,
String hardcodedName,
String hardcodedValue,
String claimType,
boolean consentRequired,
String consentText,
boolean accessToken,
boolean idToken) |
List<ProtocolMapper.ConfigProperty> |
getConfigProperties() |
String |
getDisplayCategory() |
String |
getDisplayType() |
String |
getHelpText() |
String |
getId() |
protected void |
setClaim(IDToken token,
ProtocolMapperModel mappingModel,
UserSessionModel userSession) |
AccessToken |
transformAccessToken(AccessToken token,
ProtocolMapperModel mappingModel,
KeycloakSession session,
UserSessionModel userSession,
ClientSessionModel clientSession) |
IDToken |
transformIDToken(IDToken token,
ProtocolMapperModel mappingModel,
KeycloakSession session,
UserSessionModel userSession,
ClientSessionModel clientSession) |
close, create, getProtocol, init, postInit
public static final String CLAIM_VALUE
public static final String PROVIDER_ID
public List<ProtocolMapper.ConfigProperty> getConfigProperties()
getConfigProperties
in interface ProtocolMapper
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 ProtocolMapper
public AccessToken transformAccessToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionModel clientSession)
transformAccessToken
in interface OIDCAccessTokenMapper
protected void setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession)
public IDToken transformIDToken(IDToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionModel clientSession)
transformIDToken
in interface OIDCIDTokenMapper
Copyright © 2015. All rights reserved.