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.
      • afterCacheManagerSet

        protected void afterCacheManagerSet()
        Simply calls applyCacheManagerToRealms() to allow the newly set CacheManager to be propagated to the internal collection of Realm that would need to use it.