Class AbstractOIDCProtocolMapper
java.lang.Object
org.keycloak.protocol.oidc.mappers.AbstractOIDCProtocolMapper
- All Implemented Interfaces:
ProtocolMapper,ConfiguredProvider,Provider,ProviderFactory<ProtocolMapper>
- Direct Known Subclasses:
AbstractPairwiseSubMapper,AbstractUserRoleMappingMapper,AcrProtocolMapper,AddressMapper,AllowedWebOriginsProtocolMapper,AmrProtocolMapper,AudienceProtocolMapper,AudienceResolveProtocolMapper,ClaimsParameterTokenMapper,ClaimsParameterWithValueIdTokenMapper,FullNameMapper,GroupMembershipMapper,HardcodedClaim,HardcodedRole,OrganizationMembershipMapper,RoleNameMapper,ScriptBasedOIDCProtocolMapper,SessionStateMapper,SubMapper,UserAttributeMapper,UserPropertyMapper,UserSessionNoteMapper
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()final ProtocolMappercreate(KeycloakSession session) getEffectiveModel(KeycloakSession session, RealmModel realm, ProtocolMapperModel protocolMapperModel) static booleanvoidinit(Config.Scope config) voidpostInit(KeycloakSessionFactory factory) protected voidsetClaim(org.keycloak.representations.AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) Intended to be overridden inProtocolMapperimplementations to add claims to an token.protected voidsetClaim(org.keycloak.representations.IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession) Deprecated.protected voidsetClaim(org.keycloak.representations.IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) Intended to be overridden inProtocolMapperimplementations to add claims to an token.org.keycloak.representations.AccessTokentransformAccessToken(org.keycloak.representations.AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) org.keycloak.representations.AccessTokenResponsetransformAccessTokenResponse(org.keycloak.representations.AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) org.keycloak.representations.IDTokentransformIDToken(org.keycloak.representations.IDToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) org.keycloak.representations.AccessTokentransformIntrospectionToken(org.keycloak.representations.AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) org.keycloak.representations.AccessTokentransformUserInfoToken(org.keycloak.representations.AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfig, getConfigProperties, getHelpTextMethods inherited from interface org.keycloak.protocol.ProtocolMapper
getDisplayCategory, getDisplayType, getPriority, validateConfigMethods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, getId, order
-
Field Details
-
TOKEN_MAPPER_CATEGORY
- See Also:
-
-
Constructor Details
-
AbstractOIDCProtocolMapper
public AbstractOIDCProtocolMapper()
-
-
Method Details
-
getProtocol
- Specified by:
getProtocolin interfaceProtocolMapper
-
close
public void close()- Specified by:
closein interfaceProvider- Specified by:
closein interfaceProviderFactory<ProtocolMapper>
-
create
- Specified by:
createin interfaceProviderFactory<ProtocolMapper>
-
init
- Specified by:
initin interfaceProviderFactory<ProtocolMapper>
-
postInit
- Specified by:
postInitin interfaceProviderFactory<ProtocolMapper>
-
transformUserInfoToken
public org.keycloak.representations.AccessToken transformUserInfoToken(org.keycloak.representations.AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) -
getShouldUseLightweightToken
-
transformAccessToken
public org.keycloak.representations.AccessToken transformAccessToken(org.keycloak.representations.AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) -
transformIDToken
public org.keycloak.representations.IDToken transformIDToken(org.keycloak.representations.IDToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) -
transformAccessTokenResponse
public org.keycloak.representations.AccessTokenResponse transformAccessTokenResponse(org.keycloak.representations.AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) -
transformIntrospectionToken
public org.keycloak.representations.AccessToken transformIntrospectionToken(org.keycloak.representations.AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) -
setClaim
@Deprecated protected void setClaim(org.keycloak.representations.IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession) Deprecated.Intended to be overridden inProtocolMapperimplementations to add claims to an token.- Parameters:
token-mappingModel-userSession-
-
setClaim
protected void setClaim(org.keycloak.representations.IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) Intended to be overridden inProtocolMapperimplementations to add claims to an token.- Parameters:
token-mappingModel-userSession-keycloakSession-clientSessionCtx-
-
setClaim
protected void setClaim(org.keycloak.representations.AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx) Intended to be overridden inProtocolMapperimplementations to add claims to an token.- Parameters:
accessTokenResponse-mappingModel-userSession-keycloakSession-clientSessionCtx-
-
getEffectiveModel
public ProtocolMapperModel getEffectiveModel(KeycloakSession session, RealmModel realm, ProtocolMapperModel protocolMapperModel) - Specified by:
getEffectiveModelin interfaceProtocolMapper
-
setClaim(IDToken, ProtocolMapperModel, UserSessionModel, KeycloakSession, ClientSessionContext)instead.