public class HardcodedClaim extends AbstractOIDCProtocolMapper implements OIDCAccessTokenMapper, OIDCIDTokenMapper, UserInfoTokenMapper
| 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<ProviderConfigProperty> |
getConfigProperties() |
String |
getDisplayCategory() |
String |
getDisplayType() |
String |
getHelpText() |
String |
getId() |
protected void |
setClaim(IDToken token,
ProtocolMapperModel mappingModel,
UserSessionModel userSession)
Intended to be overridden in
ProtocolMapper implementations to add claims to an token. |
close, create, getProtocol, init, postInit, transformAccessToken, transformIDToken, transformUserInfoTokenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformAccessTokentransformIDTokentransformUserInfoTokenvalidateConfigpublic static final String CLAIM_VALUE
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 ConfiguredProviderprotected void setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession)
AbstractOIDCProtocolMapperProtocolMapper implementations to add claims to an token.setClaim in class AbstractOIDCProtocolMapperCopyright © 2017 JBoss by Red Hat. All rights reserved.