Yup, you can just call 'setRealms()', if you are swapping implementations at runtime you my also want to clean up the old ones too (depending on your realm implementation) For example some realms are 'Destroyable' so you could just call 'destroy()' and that would cleanup any lingering resources.
On Tue, Oct 3, 2017 at 4:24 AM, AndrewGr <info4and...@gmail.com> wrote: > Hi Brian! > > Concerning "(although we have ideas how to clean this up, but that is a > different topic)". Could you please mention a little bit how to disable > realms? As this is exactly what I am working on now! > > Honestly I was also thinking to do this via > RealmSecurityManager.setRealms(), as it looks pretty straight forward for > adding the realm, but I am a little bit concerned about reducing the list > of > realms in the same way... > > Thank you! > > > > -- > Sent from: http://shiro-user.582556.n2.nabble.com/ >