Package org.keycloak.broker.saml.mappers
Class AdvancedAttributeToRoleMapper
- java.lang.Object
- 
- org.keycloak.broker.provider.AbstractIdentityProviderMapper
- 
- org.keycloak.broker.saml.mappers.AbstractAttributeToRoleMapper
- 
- org.keycloak.broker.saml.mappers.AdvancedAttributeToRoleMapper
 
 
 
- 
- All Implemented Interfaces:
- IdentityProviderMapper,- ConfiguredProvider,- Provider,- ProviderFactory<IdentityProviderMapper>
 
 public class AdvancedAttributeToRoleMapper extends AbstractAttributeToRoleMapper 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringARE_ATTRIBUTE_VALUES_REGEX_PROPERTY_NAMEstatic StringATTRIBUTE_PROPERTY_NAMEstatic String[]COMPATIBLE_PROVIDERSstatic StringPROVIDER_ID- 
Fields inherited from interface org.keycloak.broker.provider.IdentityProviderMapperANY_PROVIDER, DEFAULT_IDENTITY_PROVIDER_MAPPER_SYNC_MODES
 
- 
 - 
Constructor SummaryConstructors Constructor Description AdvancedAttributeToRoleMapper()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanapplies(IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context)This method must be implemented by subclasses and they must returntrueif their mapping can be applied (i.e.String[]getCompatibleProviders()List<ProviderConfigProperty>getConfigProperties()StringgetDisplayCategory()StringgetDisplayType()StringgetHelpText()StringgetId()booleansupportsSyncMode(IdentityProviderSyncMode syncMode)- 
Methods inherited from class org.keycloak.broker.saml.mappers.AbstractAttributeToRoleMapperimportNewUser, updateBrokeredUser
 - 
Methods inherited from class org.keycloak.broker.provider.AbstractIdentityProviderMapperclose, create, init, postInit, preprocessFederatedIdentity, updateBrokeredUserLegacy
 - 
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
 - 
Methods inherited from interface org.keycloak.provider.ProviderFactorygetConfigMetadata, order
 
- 
 
- 
- 
- 
Field Detail- 
PROVIDER_IDpublic static final String PROVIDER_ID - See Also:
- Constant Field Values
 
 - 
ATTRIBUTE_PROPERTY_NAMEpublic static final String ATTRIBUTE_PROPERTY_NAME - See Also:
- Constant Field Values
 
 - 
ARE_ATTRIBUTE_VALUES_REGEX_PROPERTY_NAMEpublic static final String ARE_ATTRIBUTE_VALUES_REGEX_PROPERTY_NAME - See Also:
- Constant Field Values
 
 - 
COMPATIBLE_PROVIDERSpublic static final String[] COMPATIBLE_PROVIDERS 
 
- 
 - 
Method Detail- 
supportsSyncModepublic boolean supportsSyncMode(IdentityProviderSyncMode syncMode) 
 - 
getConfigPropertiespublic List<ProviderConfigProperty> getConfigProperties() 
 - 
getIdpublic String getId() 
 - 
getCompatibleProviderspublic String[] getCompatibleProviders() 
 - 
getDisplayCategorypublic String getDisplayCategory() 
 - 
getDisplayTypepublic String getDisplayType() 
 - 
getHelpTextpublic String getHelpText() 
 - 
appliesprotected boolean applies(IdentityProviderMapperModel mapperModel, BrokeredIdentityContext context) Description copied from class:AbstractAttributeToRoleMapperThis method must be implemented by subclasses and they must returntrueif their mapping can be applied (i.e. user has the SAML attribute that should be mapped) orfalseotherwise.- Specified by:
- appliesin class- AbstractAttributeToRoleMapper
- Parameters:
- mapperModel- a reference to the- IdentityProviderMapperModel.
- context- a reference to the- BrokeredIdentityContext.
- Returns:
- trueif the mapping can be applied or- falseotherwise.
 
 
- 
 
-