Good evening Alex, in my understanding this is not possible: Shiro works on the client side and provides an abstraction of authenticating/authorizing a client against a server. But you look for a registry of sessions on the server side. That should not be Shiro's concern.
Best regards Andreas On Thu, 2020-11-05 at 22:42 +0300, Alex Orlov wrote: > Hi all, > > Could anyone say, how I can to get all logged in subjects. For > example, Subjects > have roles, roles have permissions. If in application a role were > modified dynamically > (for example in DB), I want to get all logged in subjects, iterate > them, find those, > who have this role, collect their principals and call in my realm > method > clearCachedAuthorizationInfo(PrincipalCollection principals). > > > -- > Best regards, Alex Orlov
