Class OIDCAttributeMapperHelper
- java.lang.Object
- 
- org.keycloak.protocol.oidc.mappers.OIDCAttributeMapperHelper
 
- 
 public class OIDCAttributeMapperHelper extends Object - Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringINCLUDE_IN_ACCESS_TOKENstatic StringINCLUDE_IN_ACCESS_TOKEN_HELP_TEXTstatic StringINCLUDE_IN_ACCESS_TOKEN_LABELstatic StringINCLUDE_IN_ACCESS_TOKEN_RESPONSEstatic StringINCLUDE_IN_ACCESS_TOKEN_RESPONSE_HELP_TEXTstatic StringINCLUDE_IN_ACCESS_TOKEN_RESPONSE_LABELstatic StringINCLUDE_IN_ID_TOKENstatic StringINCLUDE_IN_ID_TOKEN_HELP_TEXTstatic StringINCLUDE_IN_ID_TOKEN_LABELstatic StringINCLUDE_IN_USERINFOstatic StringINCLUDE_IN_USERINFO_HELP_TEXTstatic StringINCLUDE_IN_USERINFO_LABELstatic StringJSON_TYPEstatic StringJSON_TYPE_TOOLTIPstatic StringTOKEN_CLAIM_NAMEstatic StringTOKEN_CLAIM_NAME_LABELstatic StringTOKEN_CLAIM_NAME_TOOLTIP
 - 
Constructor SummaryConstructors Constructor Description OIDCAttributeMapperHelper()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddAttributeConfig(List<ProviderConfigProperty> configProperties, Class<? extends ProtocolMapper> protocolMapperClass)static voidaddIncludeInTokensConfig(List<ProviderConfigProperty> configProperties, Class<? extends ProtocolMapper> protocolMapperClass)static voidaddJsonTypeConfig(List<ProviderConfigProperty> configProperties)static voidaddTokenClaimNameConfig(List<ProviderConfigProperty> configProperties)static ProtocolMapperModelcreateClaimMapper(String name, String userAttribute, String tokenClaimName, String claimType, boolean accessToken, boolean idToken, boolean userinfo, String mapperId)static ProtocolMapperModelcreateClaimMapper(String name, String userAttribute, String tokenClaimName, String claimType, boolean accessToken, boolean idToken, String mapperId)static booleanincludeInAccessToken(ProtocolMapperModel mappingModel)static booleanincludeInAccessTokenResponse(ProtocolMapperModel mappingModel)static booleanincludeInIDToken(ProtocolMapperModel mappingModel)static booleanincludeInUserInfo(ProtocolMapperModel mappingModel)static booleanisMultivalued(ProtocolMapperModel mappingModel)static ObjectmapAttributeValue(ProtocolMapperModel mappingModel, Object attributeValue)static voidmapClaim(AccessTokenResponse token, ProtocolMapperModel mappingModel, Object attributeValue)static voidmapClaim(IDToken token, ProtocolMapperModel mappingModel, Object attributeValue)
 
- 
- 
- 
Field Detail- 
TOKEN_CLAIM_NAMEpublic static final String TOKEN_CLAIM_NAME - See Also:
- Constant Field Values
 
 - 
TOKEN_CLAIM_NAME_LABELpublic static final String TOKEN_CLAIM_NAME_LABEL - See Also:
- Constant Field Values
 
 - 
TOKEN_CLAIM_NAME_TOOLTIPpublic static final String TOKEN_CLAIM_NAME_TOOLTIP - See Also:
- Constant Field Values
 
 - 
JSON_TYPEpublic static final String JSON_TYPE - See Also:
- Constant Field Values
 
 - 
JSON_TYPE_TOOLTIPpublic static final String JSON_TYPE_TOOLTIP - See Also:
- Constant Field Values
 
 - 
INCLUDE_IN_ACCESS_TOKENpublic static final String INCLUDE_IN_ACCESS_TOKEN - See Also:
- Constant Field Values
 
 - 
INCLUDE_IN_ACCESS_TOKEN_LABELpublic static final String INCLUDE_IN_ACCESS_TOKEN_LABEL - See Also:
- Constant Field Values
 
 - 
INCLUDE_IN_ACCESS_TOKEN_HELP_TEXTpublic static final String INCLUDE_IN_ACCESS_TOKEN_HELP_TEXT - See Also:
- Constant Field Values
 
 - 
INCLUDE_IN_ID_TOKENpublic static final String INCLUDE_IN_ID_TOKEN - See Also:
- Constant Field Values
 
 - 
INCLUDE_IN_ID_TOKEN_LABELpublic static final String INCLUDE_IN_ID_TOKEN_LABEL - See Also:
- Constant Field Values
 
 - 
INCLUDE_IN_ID_TOKEN_HELP_TEXTpublic static final String INCLUDE_IN_ID_TOKEN_HELP_TEXT - See Also:
- Constant Field Values
 
 - 
INCLUDE_IN_ACCESS_TOKEN_RESPONSEpublic static final String INCLUDE_IN_ACCESS_TOKEN_RESPONSE - See Also:
- Constant Field Values
 
 - 
INCLUDE_IN_ACCESS_TOKEN_RESPONSE_LABELpublic static final String INCLUDE_IN_ACCESS_TOKEN_RESPONSE_LABEL - See Also:
- Constant Field Values
 
 - 
INCLUDE_IN_ACCESS_TOKEN_RESPONSE_HELP_TEXTpublic static final String INCLUDE_IN_ACCESS_TOKEN_RESPONSE_HELP_TEXT - See Also:
- Constant Field Values
 
 - 
INCLUDE_IN_USERINFOpublic static final String INCLUDE_IN_USERINFO - See Also:
- Constant Field Values
 
 - 
INCLUDE_IN_USERINFO_LABELpublic static final String INCLUDE_IN_USERINFO_LABEL - See Also:
- Constant Field Values
 
 - 
INCLUDE_IN_USERINFO_HELP_TEXTpublic static final String INCLUDE_IN_USERINFO_HELP_TEXT - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
mapAttributeValuepublic static Object mapAttributeValue(ProtocolMapperModel mappingModel, Object attributeValue) 
 - 
mapClaimpublic static void mapClaim(IDToken token, ProtocolMapperModel mappingModel, Object attributeValue) 
 - 
mapClaimpublic static void mapClaim(AccessTokenResponse token, ProtocolMapperModel mappingModel, Object attributeValue) 
 - 
createClaimMapperpublic static ProtocolMapperModel createClaimMapper(String name, String userAttribute, String tokenClaimName, String claimType, boolean accessToken, boolean idToken, String mapperId) 
 - 
createClaimMapperpublic static ProtocolMapperModel createClaimMapper(String name, String userAttribute, String tokenClaimName, String claimType, boolean accessToken, boolean idToken, boolean userinfo, String mapperId) 
 - 
includeInIDTokenpublic static boolean includeInIDToken(ProtocolMapperModel mappingModel) 
 - 
includeInAccessTokenpublic static boolean includeInAccessToken(ProtocolMapperModel mappingModel) 
 - 
includeInAccessTokenResponsepublic static boolean includeInAccessTokenResponse(ProtocolMapperModel mappingModel) 
 - 
isMultivaluedpublic static boolean isMultivalued(ProtocolMapperModel mappingModel) 
 - 
includeInUserInfopublic static boolean includeInUserInfo(ProtocolMapperModel mappingModel) 
 - 
addAttributeConfigpublic static void addAttributeConfig(List<ProviderConfigProperty> configProperties, Class<? extends ProtocolMapper> protocolMapperClass) 
 - 
addTokenClaimNameConfigpublic static void addTokenClaimNameConfig(List<ProviderConfigProperty> configProperties) 
 - 
addJsonTypeConfigpublic static void addJsonTypeConfig(List<ProviderConfigProperty> configProperties) 
 - 
addIncludeInTokensConfigpublic static void addIncludeInTokensConfig(List<ProviderConfigProperty> configProperties, Class<? extends ProtocolMapper> protocolMapperClass) 
 
- 
 
-