Class ExactMatchIdentityMapper

    • Constructor Detail

      • ExactMatchIdentityMapper

        public ExactMatchIdentityMapper()
        Creates a new instance of this exact match identity mapper. All initialization should be performed in the initializeIdentityMapper method.
    • Method Detail

      • getEntryForID

        public Entry getEntryForID​(String id)
                            throws DirectoryException
        Retrieves the user entry that was mapped to the provided identification string.
        Specified by:
        getEntryForID in class IdentityMapper<ExactMatchIdentityMapperCfg>
        Parameters:
        id - The identification string that is to be mapped to a user.
        Returns:
        The user entry that was mapped to the provided identification, or null if no users were found that could be mapped to the provided ID.
        Throws:
        DirectoryException - 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.
      • isConfigurationAcceptable

        public boolean isConfigurationAcceptable​(IdentityMapperCfg configuration,
                                                 List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
        Description copied from class: IdentityMapper
        Indicates whether the provided configuration is acceptable for this identity mapper. It should be possible to call this method on an uninitialized identity mapper instance in order to determine whether the identity mapper would be able to use the provided configuration.

        Note that implementations which use a subclass of the provided configuration class will likely need to cast the configuration to the appropriate subclass type.
        Overrides:
        isConfigurationAcceptable in class IdentityMapper<ExactMatchIdentityMapperCfg>
        Parameters:
        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.
        Returns:
        true if the provided configuration is acceptable for this identity mapper, or false if not.
      • isConfigurationChangeAcceptable

        public boolean isConfigurationChangeAcceptable​(ExactMatchIdentityMapperCfg configuration,
                                                       List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
        Description copied from interface: ConfigurationChangeListener
        Indicates whether the proposed change to the configuration is acceptable to this change listener.
        Specified by:
        isConfigurationChangeAcceptable in interface ConfigurationChangeListener<ExactMatchIdentityMapperCfg>
        Parameters:
        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.
        Returns:
        Returns true if the proposed change is acceptable, or false if it is not.