public class RegularExpressionIdentityMapper extends IdentityMapper<RegularExpressionIdentityMapperCfg> implements ConfigurationChangeListener<RegularExpressionIdentityMapperCfg>
Constructor and Description |
---|
RegularExpressionIdentityMapper()
Creates a new instance of this regular expression identity mapper.
|
Modifier and Type | Method and Description |
---|---|
ConfigChangeResult |
applyConfigurationChange(RegularExpressionIdentityMapperCfg configuration)
Applies the configuration changes to this change listener.
|
void |
finalizeIdentityMapper()
Performs any finalization that may be necessary for this identity mapper.
|
Entry |
getEntryForID(String id)
Retrieves the user entry that was mapped to the provided identification string.
|
void |
initializeIdentityMapper(RegularExpressionIdentityMapperCfg configuration)
Initializes this identity mapper based on the information in the provided configuration entry.
|
boolean |
isConfigurationAcceptable(RegularExpressionIdentityMapperCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the provided configuration is acceptable for this identity mapper.
|
boolean |
isConfigurationChangeAcceptable(RegularExpressionIdentityMapperCfg configuration,
List<LocalizableMessage> unacceptableReasons)
Indicates whether the proposed change to the configuration is acceptable
to this change listener.
|
public RegularExpressionIdentityMapper()
initializeIdentityMapper
method.public void initializeIdentityMapper(RegularExpressionIdentityMapperCfg configuration) throws ConfigException, InitializationException
IdentityMapper
initializeIdentityMapper
in class IdentityMapper<RegularExpressionIdentityMapperCfg>
configuration
- The configuration for the identity mapper.ConfigException
- If an unrecoverable problem arises in the process of performing the initialization.InitializationException
- If a problem occurs during initialization that is not related to the server configuration.public void finalizeIdentityMapper()
IdentityMapper
finalizeIdentityMapper
in class IdentityMapper<RegularExpressionIdentityMapperCfg>
public Entry getEntryForID(String id) throws LdapException
IdentityMapper
getEntryForID
in class IdentityMapper<RegularExpressionIdentityMapperCfg>
id
- The identification string that is to be mapped to a user.null
if no users were found
that could be mapped to the provided ID.LdapException
- If a problem occurs while attempting to map the given ID to a user entry, or if there are multiple
user entries that could map to the provided ID.public boolean isConfigurationAcceptable(RegularExpressionIdentityMapperCfg configuration, List<LocalizableMessage> unacceptableReasons)
IdentityMapper
isConfigurationAcceptable
in class IdentityMapper<RegularExpressionIdentityMapperCfg>
configuration
- The identity mapper configuration for which to make the determination.unacceptableReasons
- A list that may be used to hold the reasons that the provided configuration is not acceptable.true
if the provided configuration is acceptable for this identity mapper, or false
if
not.public boolean isConfigurationChangeAcceptable(RegularExpressionIdentityMapperCfg configuration, List<LocalizableMessage> unacceptableReasons)
ConfigurationChangeListener
isConfigurationChangeAcceptable
in interface ConfigurationChangeListener<RegularExpressionIdentityMapperCfg>
configuration
- The new configuration containing the changes.unacceptableReasons
- A list that can be used to hold messages about why the
provided configuration is not acceptable.true
if the proposed change is acceptable,
or false
if it is not.public ConfigChangeResult applyConfigurationChange(RegularExpressionIdentityMapperCfg configuration)
ConfigurationChangeListener
applyConfigurationChange
in interface ConfigurationChangeListener<RegularExpressionIdentityMapperCfg>
configuration
- The new configuration containing the changes.Copyright 2010-2018 ForgeRock AS.