Package org.keycloak.broker.saml.mappers
Class AttributeToRoleMapper
java.lang.Object
org.keycloak.broker.provider.AbstractIdentityProviderMapper
org.keycloak.broker.saml.mappers.AbstractAttributeToRoleMapper
org.keycloak.broker.saml.mappers.AttributeToRoleMapper
- All Implemented Interfaces:
IdentityProviderMapper
,SamlMetadataDescriptorUpdater
,ConfiguredProvider
,Provider
,ProviderFactory<IdentityProviderMapper>
public class AttributeToRoleMapper
extends AbstractAttributeToRoleMapper
implements SamlMetadataDescriptorUpdater
- 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
Fields inherited from interface org.keycloak.broker.provider.IdentityProviderMapper
ANY_PROVIDER, DEFAULT_IDENTITY_PROVIDER_MAPPER_SYNC_MODES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
applies
(IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) This method must be implemented by subclasses and they must returntrue
if their mapping can be applied (i.e.String[]
getId()
boolean
supportsSyncMode
(IdentityProviderSyncMode syncMode) void
updateMetadata
(IdentityProviderMapperModel mapperModel, EntityDescriptorType entityDescriptor) Methods inherited from class org.keycloak.broker.saml.mappers.AbstractAttributeToRoleMapper
importNewUser, updateBrokeredUser
Methods inherited from class org.keycloak.broker.provider.AbstractIdentityProviderMapper
close, create, init, postInit, preprocessFederatedIdentity, updateBrokeredUserLegacy
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfig
Methods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, order
-
Field Details
-
COMPATIBLE_PROVIDERS
-
ATTRIBUTE_NAME
- See Also:
-
ATTRIBUTE_FRIENDLY_NAME
- See Also:
-
ATTRIBUTE_VALUE
- See Also:
-
PROVIDER_ID
- See Also:
-
-
Constructor Details
-
AttributeToRoleMapper
public AttributeToRoleMapper()
-
-
Method Details
-
supportsSyncMode
- Specified by:
supportsSyncMode
in interfaceIdentityProviderMapper
-
getConfigProperties
- Specified by:
getConfigProperties
in interfaceConfiguredProvider
-
getId
- Specified by:
getId
in interfaceProviderFactory<IdentityProviderMapper>
-
getCompatibleProviders
- Specified by:
getCompatibleProviders
in interfaceIdentityProviderMapper
-
getDisplayCategory
- Specified by:
getDisplayCategory
in interfaceIdentityProviderMapper
-
getDisplayType
- Specified by:
getDisplayType
in interfaceIdentityProviderMapper
-
applies
Description copied from class:AbstractAttributeToRoleMapper
This method must be implemented by subclasses and they must returntrue
if their mapping can be applied (i.e. user has the SAML attribute that should be mapped) orfalse
otherwise.- Specified by:
applies
in classAbstractAttributeToRoleMapper
- Parameters:
mapperModel
- a reference to theIdentityProviderMapperModel
.context
- a reference to theBrokeredIdentityContext
.- Returns:
true
if the mapping can be applied orfalse
otherwise.
-
getHelpText
- Specified by:
getHelpText
in interfaceConfiguredProvider
-
updateMetadata
public void updateMetadata(IdentityProviderMapperModel mapperModel, EntityDescriptorType entityDescriptor) - Specified by:
updateMetadata
in interfaceSamlMetadataDescriptorUpdater
-