public class OIDCAttributeMapperHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
INCLUDE_IN_ACCESS_TOKEN |
static String |
INCLUDE_IN_ACCESS_TOKEN_HELP_TEXT |
static String |
INCLUDE_IN_ACCESS_TOKEN_LABEL |
static String |
INCLUDE_IN_ID_TOKEN |
static String |
INCLUDE_IN_ID_TOKEN_HELP_TEXT |
static String |
INCLUDE_IN_ID_TOKEN_LABEL |
static String |
INCLUDE_IN_USERINFO |
static String |
INCLUDE_IN_USERINFO_HELP_TEXT |
static String |
INCLUDE_IN_USERINFO_LABEL |
static String |
JSON_TYPE |
static String |
JSON_TYPE_TOOLTIP |
static String |
TOKEN_CLAIM_NAME |
static String |
TOKEN_CLAIM_NAME_LABEL |
static String |
TOKEN_CLAIM_NAME_TOOLTIP |
Constructor and Description |
---|
OIDCAttributeMapperHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addAttributeConfig(List<ProviderConfigProperty> configProperties,
Class<? extends ProtocolMapper> protocolMapperClass) |
static void |
addIncludeInTokensConfig(List<ProviderConfigProperty> configProperties,
Class<? extends ProtocolMapper> protocolMapperClass) |
static void |
addJsonTypeConfig(List<ProviderConfigProperty> configProperties) |
static void |
addTokenClaimNameConfig(List<ProviderConfigProperty> configProperties) |
static ProtocolMapperModel |
createClaimMapper(String name,
String userAttribute,
String tokenClaimName,
String claimType,
boolean accessToken,
boolean idToken,
boolean userinfo,
String mapperId) |
static ProtocolMapperModel |
createClaimMapper(String name,
String userAttribute,
String tokenClaimName,
String claimType,
boolean accessToken,
boolean idToken,
String mapperId) |
static boolean |
includeInAccessToken(ProtocolMapperModel mappingModel) |
static boolean |
includeInIDToken(ProtocolMapperModel mappingModel) |
static boolean |
includeInUserInfo(ProtocolMapperModel mappingModel) |
static boolean |
isMultivalued(ProtocolMapperModel mappingModel) |
static Object |
mapAttributeValue(ProtocolMapperModel mappingModel,
Object attributeValue) |
static void |
mapClaim(IDToken token,
ProtocolMapperModel mappingModel,
Object attributeValue) |
static List<String> |
splitClaimPath(String claimPath) |
public static final String TOKEN_CLAIM_NAME
public static final String TOKEN_CLAIM_NAME_LABEL
public static final String TOKEN_CLAIM_NAME_TOOLTIP
public static final String JSON_TYPE
public static final String JSON_TYPE_TOOLTIP
public static final String INCLUDE_IN_ACCESS_TOKEN
public static final String INCLUDE_IN_ACCESS_TOKEN_LABEL
public static final String INCLUDE_IN_ACCESS_TOKEN_HELP_TEXT
public static final String INCLUDE_IN_ID_TOKEN
public static final String INCLUDE_IN_ID_TOKEN_LABEL
public static final String INCLUDE_IN_ID_TOKEN_HELP_TEXT
public static final String INCLUDE_IN_USERINFO
public static final String INCLUDE_IN_USERINFO_LABEL
public static final String INCLUDE_IN_USERINFO_HELP_TEXT
public static Object mapAttributeValue(ProtocolMapperModel mappingModel, Object attributeValue)
public static void mapClaim(IDToken token, ProtocolMapperModel mappingModel, Object attributeValue)
public static ProtocolMapperModel createClaimMapper(String name, String userAttribute, String tokenClaimName, String claimType, boolean accessToken, boolean idToken, String mapperId)
public static ProtocolMapperModel createClaimMapper(String name, String userAttribute, String tokenClaimName, String claimType, boolean accessToken, boolean idToken, boolean userinfo, String mapperId)
public static boolean includeInIDToken(ProtocolMapperModel mappingModel)
public static boolean includeInAccessToken(ProtocolMapperModel mappingModel)
public static boolean isMultivalued(ProtocolMapperModel mappingModel)
public static boolean includeInUserInfo(ProtocolMapperModel mappingModel)
public static void addAttributeConfig(List<ProviderConfigProperty> configProperties, Class<? extends ProtocolMapper> protocolMapperClass)
public static void addTokenClaimNameConfig(List<ProviderConfigProperty> configProperties)
public static void addJsonTypeConfig(List<ProviderConfigProperty> configProperties)
public static void addIncludeInTokensConfig(List<ProviderConfigProperty> configProperties, Class<? extends ProtocolMapper> protocolMapperClass)
Copyright © 2020 JBoss by Red Hat. All rights reserved.