Class OIDCAttributeMapperHelper
java.lang.Object
org.keycloak.protocol.oidc.mappers.OIDCAttributeMapperHelper
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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, boolean introspectionEndpoint, String mapperId) static ProtocolMapperModel
createClaimMapper
(String name, String userAttribute, String tokenClaimName, String claimType, boolean accessToken, boolean idToken, boolean introspectionEndpoint, String mapperId) static boolean
includeInAccessToken
(ProtocolMapperModel mappingModel) static boolean
includeInAccessTokenResponse
(ProtocolMapperModel mappingModel) static boolean
includeInIDToken
(ProtocolMapperModel mappingModel) static boolean
includeInIntrospection
(ProtocolMapperModel mappingModel) static boolean
includeInUserInfo
(ProtocolMapperModel mappingModel) static boolean
isMultivalued
(ProtocolMapperModel mappingModel) static Object
mapAttributeValue
(ProtocolMapperModel mappingModel, Object attributeValue) static void
mapClaim
(AccessTokenResponse token, ProtocolMapperModel mappingModel, Object attributeValue) static void
mapClaim
(IDToken token, ProtocolMapperModel mappingModel, Object attributeValue)
-
Field Details
-
TOKEN_CLAIM_NAME
- See Also:
-
TOKEN_CLAIM_NAME_LABEL
- See Also:
-
TOKEN_CLAIM_NAME_TOOLTIP
- See Also:
-
JSON_TYPE
- See Also:
-
JSON_TYPE_TOOLTIP
- See Also:
-
INCLUDE_IN_ACCESS_TOKEN
- See Also:
-
INCLUDE_IN_ACCESS_TOKEN_LABEL
- See Also:
-
INCLUDE_IN_ACCESS_TOKEN_HELP_TEXT
- See Also:
-
INCLUDE_IN_ID_TOKEN
- See Also:
-
INCLUDE_IN_ID_TOKEN_LABEL
- See Also:
-
INCLUDE_IN_ID_TOKEN_HELP_TEXT
- See Also:
-
INCLUDE_IN_ACCESS_TOKEN_RESPONSE
- See Also:
-
INCLUDE_IN_ACCESS_TOKEN_RESPONSE_LABEL
- See Also:
-
INCLUDE_IN_ACCESS_TOKEN_RESPONSE_HELP_TEXT
- See Also:
-
INCLUDE_IN_USERINFO
- See Also:
-
INCLUDE_IN_USERINFO_LABEL
- See Also:
-
INCLUDE_IN_USERINFO_HELP_TEXT
- See Also:
-
INCLUDE_IN_INTROSPECTION
- See Also:
-
INCLUDE_IN_INTROSPECTION_LABEL
- See Also:
-
INCLUDE_IN_INTROSPECTION_HELP_TEXT
- See Also:
-
-
Constructor Details
-
OIDCAttributeMapperHelper
public OIDCAttributeMapperHelper()
-
-
Method Details
-
mapAttributeValue
-
mapClaim
-
mapClaim
public static void mapClaim(AccessTokenResponse token, ProtocolMapperModel mappingModel, Object attributeValue) -
createClaimMapper
-
createClaimMapper
-
includeInIDToken
-
includeInAccessToken
-
includeInAccessTokenResponse
-
isMultivalued
-
includeInUserInfo
-
includeInIntrospection
-
addAttributeConfig
public static void addAttributeConfig(List<ProviderConfigProperty> configProperties, Class<? extends ProtocolMapper> protocolMapperClass) -
addTokenClaimNameConfig
-
addJsonTypeConfig
-
addIncludeInTokensConfig
public static void addIncludeInTokensConfig(List<ProviderConfigProperty> configProperties, Class<? extends ProtocolMapper> protocolMapperClass)
-