Class IniSecurityManagerFactory

All Implemented Interfaces:
org.apache.shiro.lang.util.Factory<SecurityManager>

Deprecated.
use Shiro's Environment mechanisms instead.
A Factory that creates SecurityManager instances based on Ini configuration.
Since:
1.0
  • Field Details

  • Constructor Details

  • Method Details

    • getBeans

      public Map<String,?> getBeans()
      Deprecated.
    • destroy

      public void destroy()
      Deprecated.
    • createDefaultInstance

      Deprecated.
      Description copied from class: IniFactorySupport
      create default instance.
      Specified by:
      createDefaultInstance in class IniFactorySupport<SecurityManager>
      Returns:
      T
    • createInstance

      protected SecurityManager createInstance(org.apache.shiro.config.Ini ini)
      Deprecated.
      Description copied from class: IniFactorySupport
      create instance.
      Specified by:
      createInstance in class IniFactorySupport<SecurityManager>
      Parameters:
      ini - ini
      Returns:
      T
    • isAutoApplyRealms

      protected boolean isAutoApplyRealms(SecurityManager securityManager)
      Deprecated.
    • createDefaults

      protected Map<String,?> createDefaults(org.apache.shiro.config.Ini ini, org.apache.shiro.config.Ini.Section mainSection)
      Deprecated.
    • applyRealmsToSecurityManager

      protected void applyRealmsToSecurityManager(Collection<Realm> realms, SecurityManager securityManager)
      Deprecated.
    • shouldImplicitlyCreateRealm

      protected boolean shouldImplicitlyCreateRealm(org.apache.shiro.config.Ini ini)
      Deprecated.
      Returns true if the Ini contains account data and a Realm should be implicitly created to reflect the account data, false if no realm should be implicitly created.
      Parameters:
      ini - the Ini instance to inspect for account data resulting in an implicitly created realm.
      Returns:
      true if the Ini contains account data and a Realm should be implicitly created to reflect the account data, false if no realm should be implicitly created.
    • createRealm

      protected Realm createRealm(org.apache.shiro.config.Ini ini)
      Deprecated.
      Creates a Realm from the Ini instance containing account data.
      Parameters:
      ini - the Ini instance from which to acquire the account data.
      Returns:
      a new Realm instance reflecting the account data discovered in the Ini.
    • getReflectionBuilder

      public org.apache.shiro.config.ogdl.ReflectionBuilder getReflectionBuilder()
      Deprecated.
      Returns the ReflectionBuilder instance used to create SecurityManagers object graph.
      Returns:
      ReflectionBuilder instance used to create SecurityManagers object graph.
      Since:
      1.4
    • setReflectionBuilder

      public void setReflectionBuilder(org.apache.shiro.config.ogdl.ReflectionBuilder builder)
      Deprecated.
      Sets the ReflectionBuilder that will be used to create the SecurityManager based on the contents of the Ini configuration.
      Parameters:
      builder - The ReflectionBuilder used to parse the Ini configuration.
      Since:
      1.4