Yes, they are, but that concern is up to the implementation of the cache/session impl. So if you have a custom implementation you will need to ensure that code is also thread safe.
On Mon, Nov 9, 2020 at 4:46 PM Alex Orlov <[email protected]> wrote: > Hi all, > > As I understand Shiro must be thread-safe. However, I couldn’t find any > information about > multithreading support, so, to be sure decided to ask several questions. > Could anyone say, if > > 1) this code with sessions is thread-safe? > for (Session session: sessionDao.getActiveSessions()){ > ….. > session.stop(); > } > > 2) Real#clearCachedAuthorizationInfo(PrincipalCollection principals) > method is thread-safe? > > -- > Best regards, Alex Orlov >
