Class IniRealm

    • Constructor Detail

      • IniRealm

        public IniRealm()
      • IniRealm

        public IniRealm​(org.apache.shiro.config.Ini ini)
        This constructor will immediately process the definitions in the Ini argument. If you need to perform additional configuration before processing (e.g. setting a permissionResolver, etc), do not call this constructor. Instead, do the following:
        1. Call the default no-arg constructor
        2. Set the Ini instance you wish to use via #setIni
        3. Set any other configuration properties
        4. Call AuthenticatingRealm.init()
        Parameters:
        ini - the Ini instance which will be inspected to create accounts, groups and permissions for this realm.
      • IniRealm

        public IniRealm​( resourcePath)
        This constructor will immediately process the definitions in the Ini resolved from the specified resourcePath. If you need to perform additional configuration before processing (e.g. setting a permissionResolver, etc), do not call this constructor. Instead, do the following:
        1. Call the default no-arg constructor
        2. Set the Ini instance you wish to use via #setIni
        3. Set any other configuration properties
        4. Call AuthenticatingRealm.init()
        Parameters:
        resourcePath - the resource path of the Ini config which will be inspected to create accounts, groups and permissions for this realm.
    • Method Detail

      • getResourcePath

        public  getResourcePath()
      • setResourcePath

        public void setResourcePath​( resourcePath)
      • getIni

        public org.apache.shiro.config.Ini getIni()
        Returns the Ini instance used to configure this realm. Provided for JavaBeans-style configuration of this realm, particularly useful in Dependency Injection environments.
        Returns:
        the Ini instance which will be inspected to create accounts, groups and permissions for this realm.
      • setIni

        public void setIni​(org.apache.shiro.config.Ini ini)
        Sets the Ini instance used to configure this realm. Provided for JavaBeans-style configuration of this realm, particularly useful in Dependency Injection environments.
        Parameters:
        ini - the Ini instance which will be inspected to create accounts, groups and permissions for this realm.