Class RealmSecurityManager

    • Constructor Detail

      • RealmSecurityManager

        public RealmSecurityManager()
        Default no-arg constructor.
    • Method Detail

      • setRealms

        public void setRealms(Collection<Realm> realms)
        Sets the realms managed by this SecurityManager instance.
        Parameters:
        realms - the realms managed by this SecurityManager instance.
        Throws:
        IllegalArgumentException - if the realms collection is null or empty.
      • afterRealmsSet

        protected void afterRealmsSet()
      • getRealms

        public Collection<Realm> getRealms()
        Returns the Realms managed by this SecurityManager instance.
        Returns:
        the Realms managed by this SecurityManager instance.
      • applyCacheManagerToRealms

        protected void applyCacheManagerToRealms()
        Sets the internal CacheManager on any internal configured Realms that implement the CacheManagerAware interface.

        This method is called after setting a cacheManager on this securityManager via the setCacheManager method to allow it to be propagated down to all the internal Realms that would need to use it.

        It is also called after setting one or more realms via the setRealm or setRealms methods to allow these newly available realms to be given the cache manager already in use.
      • applyEventBusToRealms

        protected void applyEventBusToRealms()
        Sets the internal EventBus on any internal configured Realms that implement the EventBusAware interface.

        This method is called after setting an eventBus on this securityManager via the setEventBus method to allow it to be propagated down to all the internal Realms that would need to use it.

        It is also called after setting one or more realms via the setRealm or setRealms methods to allow these newly available realms to be given the EventBus already in use.
        Since:
        1.3