This class attempts to use EhCacheManager as the default cache
manager, if Ehcache is in the classpath. If it's not, then there is
no cache manager. This breaks SimpleAccountRealm and anything that
inherits from it, i.e. PropertiesRealm, the default realm. So, if
Ehcache is not in the classpath, the default behavior of JSecurity is
broken.
IMO, we should either make a hard dependency on Ehcache or make
HashtableCacheManager the default cache manager.
Regards,
Alan
- CachingSecurityManager Alan D. Cabrera
-