Class AbstractOIDCProtocolMapper
- java.lang.Object
- 
- org.keycloak.protocol.oidc.mappers.AbstractOIDCProtocolMapper
 
- 
- All Implemented Interfaces:
- ProtocolMapper,- ConfiguredProvider,- Provider,- ProviderFactory<ProtocolMapper>
 - Direct Known Subclasses:
- AbstractPairwiseSubMapper,- AcrProtocolMapper,- AddressMapper,- AllowedWebOriginsProtocolMapper,- AudienceProtocolMapper,- AudienceResolveProtocolMapper,- ClaimsParameterTokenMapper,- ClaimsParameterWithValueIdTokenMapper,- FullNameMapper,- GroupMembershipMapper,- HardcodedClaim,- HardcodedRole,- RoleNameMapper,- ScriptBasedOIDCProtocolMapper,- UserAttributeMapper,- UserClientRoleMappingMapper,- UserPropertyMapper,- UserRealmRoleMappingMapper,- UserSessionNoteMapper
 
 public abstract class AbstractOIDCProtocolMapper extends Object implements ProtocolMapper - Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringTOKEN_MAPPER_CATEGORY
 - 
Constructor SummaryConstructors Constructor Description AbstractOIDCProtocolMapper()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclose()This is called when the server shuts down.ProtocolMappercreate(KeycloakSession session)StringgetProtocol()voidinit(Config.Scope config)Only called once when the factory is first created.voidpostInit(KeycloakSessionFactory factory)Called after all provider factories have been initializedprotected voidsetClaim(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx)Intended to be overridden inProtocolMapperimplementations to add claims to an token.protected voidsetClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession)Deprecated.protected voidsetClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession, KeycloakSession keycloakSession, ClientSessionContext clientSessionCtx)Intended to be overridden inProtocolMapperimplementations to add claims to an token.AccessTokentransformAccessToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)AccessTokenResponsetransformAccessTokenResponse(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)IDTokentransformIDToken(IDToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)AccessTokentransformUserInfoToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx)- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.provider.ConfiguredProvidergetConfig, getConfigProperties, getHelpText
 - 
Methods inherited from interface org.keycloak.protocol.ProtocolMappergetDisplayCategory, getDisplayType, getPriority, validateConfig
 - 
Methods inherited from interface org.keycloak.provider.ProviderFactorygetConfigMetadata, getId, order
 
- 
 
- 
- 
- 
Field Detail- 
TOKEN_MAPPER_CATEGORYpublic static final String TOKEN_MAPPER_CATEGORY - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getProtocolpublic String getProtocol() - Specified by:
- getProtocolin interface- ProtocolMapper
 
 - 
closepublic void close() Description copied from interface:ProviderFactoryThis is called when the server shuts down.- Specified by:
- closein interface- Provider
- Specified by:
- closein interface- ProviderFactory<ProtocolMapper>
 
 - 
createpublic final ProtocolMapper create(KeycloakSession session) - Specified by:
- createin interface- ProviderFactory<ProtocolMapper>
 
 - 
initpublic void init(Config.Scope config) Description copied from interface:ProviderFactoryOnly called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
- initin interface- ProviderFactory<ProtocolMapper>
 
 - 
postInitpublic void postInit(KeycloakSessionFactory factory) Description copied from interface:ProviderFactoryCalled after all provider factories have been initialized- Specified by:
- postInitin interface- ProviderFactory<ProtocolMapper>
 
 - 
transformUserInfoTokenpublic AccessToken transformUserInfoToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) 
 - 
transformAccessTokenpublic AccessToken transformAccessToken(AccessToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) 
 - 
transformIDTokenpublic IDToken transformIDToken(IDToken token, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) 
 - 
transformAccessTokenResponsepublic AccessTokenResponse transformAccessTokenResponse(AccessTokenResponse accessTokenResponse, ProtocolMapperModel mappingModel, KeycloakSession session, UserSessionModel userSession, ClientSessionContext clientSessionCtx) 
 - 
setClaim@Deprecated protected void setClaim(IDToken token, ProtocolMapperModel mappingModel, UserSessionModel userSession) Deprecated.Intended to be overridden inProtocolMapperimplementations to add claims to an token.- Parameters:
- token-
- mappingModel-
- userSession-
 
 - 
setClaimprotected void setClaim(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-
 
 - 
setClaimprotected void setClaim(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-
 
 
- 
 
-