Interface AuthConfigurationModel

    • Method Detail

      • createAuthConfiguration

        void createAuthConfiguration​(String name)
                              throws AMConsoleException
        Creates a new named authentication configuration object. This object will be used by the various objects for authentication.
        Parameters:
        name - used to reference the configuration.
        Throws:
        AMConsoleException - if the configuration cannot be created.
      • deleteAuthConfiguration

        void deleteAuthConfiguration​(String realm,
                                     Set names)
                              throws AMConsoleException
        Deletes the named authentication configuration object.
        Parameters:
        realm - name where configuration is locate.
        names - names of entries.
        Throws:
        AMConsoleException
      • getModuleName

        String getModuleName​(int moduleIndex)
        Gets the module name for the given module index in the current authentication configuration attributes.
        Parameters:
        moduleIndex - the index of the module to retrieve name from.
        Returns:
        the module name
      • getModuleFlag

        String getModuleFlag​(int moduleIndex)
        Gets the module flag for the given module index in the current authentication configuration attributes
        Parameters:
        moduleIndex - the index of the module to retrieve Flag from.
        Returns:
        the module flag
      • getModuleOptions

        String getModuleOptions​(int moduleIndex)
        Gets the module options string for the given module index in the current authentication configuration attributes
        Parameters:
        moduleIndex - the index of the module to retrieve Flag from.
        Returns:
        the module options string
      • getPostProcessingClass

        String getPostProcessingClass​(String realm,
                                      String configuration)
        Returns the value for the post processing class set for the current configuration object. If the value is not present the emptry string will be returned.
        Parameters:
        realm - name where configuration is locate.
        configuration - name of entry.
        Returns:
        value of postprocessing class
      • getNumberEntries

        int getNumberEntries()
        Returns the number of entries in the current configuration.
        Returns:
        number of entries
      • getXMLValue

        String getXMLValue​(String realm,
                           String config)
        Returns the xml blob that represents the auth entries which make up the specified auth configuration.
        Parameters:
        realm - name where configuration exists.
        config - name of the configuration object.
        Returns:
        String xml blob.
      • setXMLValue

        void setXMLValue​(String value)
        Sets the xml blob that represents the auth entries which make up the specified auth configuration.
        Parameters:
        value - of the xml blob.
      • removeAuthEntries

        void removeAuthEntries​(Integer[] entries)
        Remove the entries selected in the UI. This is done by creating a new List of the selected entries, then removing that List from the original list of all the entries.
        Parameters:
        entries - array of index id's
      • initialize

        void initialize​(String realm,
                        String config)
        Initialize configuration entry information for the given realm and named configuration.
        Parameters:
        realm - name where configuration is locate.
        config - name of entry.
      • setEntries

        void setEntries​(List entries)
        Stores locally the list of authentication entries for the auth config object.
        Parameters:
        entries - list of AuthConfigurationEntry objects.
      • setPostAuthPropertiesClass

        void setPostAuthPropertiesClass​(String className)
        Sets the value for the post authentication properties class.
        Parameters:
        className - name of the class used for post authentication processing
      • store

        void store​(String realm,
                   String config)
            throws AMConsoleException
        Save the value for the given realm and configuration.
        Parameters:
        realm - name where configuration is locate.
        config - name of entry.
        Throws:
        AMConsoleException
      • reset

        void reset​(String realm,
                   String config)
        Used to restore the config data settings to their original values.
        Parameters:
        realm - name where configuration is locate.
        config - name of entry.
      • getCriteriaMap

        Map getCriteriaMap()
        Returns a Map object containing the AuthenticationEntry criteria flags. The key is the value and the display string is the value.
        Returns:
        map of criteria values.
      • getValues

        Map getValues()
               throws AMConsoleException
        Returns a map of the attributes that make up an auth config entry. The map will contain the success and failure url lists, the post processing class, and the list of auth modules that make up the auth configuration entry.
        Returns:
        Map of attribute values.
        Throws:
        AMConsoleException - if there is an error retrieving the data from the entry.
      • setValues

        void setValues​(Map data)
        Sets the specified attributes in the auth config entry. The data will not be committed to the data store until store() is called.
        Parameters:
        data - that will be set in the config entry.