Hello all,
I have two security managers — web and default. When shiro filter creates web
manager
the method onInit(
https://shiro.apache.org/static/1.2.2/apidocs/org/apache/shiro/realm/AuthorizingRealm.html#onInit(
) )
of my Realm is called.
However, when I create SM manually
var realm = new SecurityRealm();
...
DefaultSecurityManager sm = new DefaultSecurityManager(realm);
sm.setCacheManager(new MemoryConstrainedCacheManager());
this.securityManager = sm;
this method (onInit) is not called.
Could anyone say if it is a bug or I miss something (I use shiro 1.7.0)?
--
Best regards, Alex Orlov