Class PropertyUserStoreManager

  • All Implemented Interfaces:
    LifeCycle

    public class PropertyUserStoreManager
    extends AbstractLifeCycle
    PropertyUserStoreManager Maintains a map of PropertyUserStores, keyed off the location of the property file containing the authentication and authorization information. This class is used to enable the PropertyUserStores to be cached and shared. This is essential for the PropertyFileLoginModules, whose lifecycle is controlled by the JAAS api and instantiated afresh whenever a user needs to be authenticated. Without this class, every PropertyFileLoginModule instantiation would re-read and reload in all the user information just to authenticate a single user.
    • Constructor Detail

      • PropertyUserStoreManager

        public PropertyUserStoreManager()
    • Method Detail

      • getPropertyUserStore

        public PropertyUserStore getPropertyUserStore​(java.lang.String file)
      • doStart

        protected void doStart()
                        throws java.lang.Exception
        Description copied from class: AbstractLifeCycle
        Method to override to start the lifecycle
        Overrides:
        doStart in class AbstractLifeCycle
        Throws:
        AbstractLifeCycle.StopException - If thrown, the lifecycle will immediately be stopped.
        java.lang.Exception - If there was a problem starting. Will cause a transition to FAILED state
      • doStop

        protected void doStop()
                       throws java.lang.Exception
        Description copied from class: AbstractLifeCycle
        Method to override to stop the lifecycle
        Overrides:
        doStop in class AbstractLifeCycle
        Throws:
        java.lang.Exception - If there was a problem stopping. Will cause a transition to FAILED state