Just saw everyone else's answers (much better than my original suggestion!
- much too hacky).  Sounds like getting the PricipalCollection from the
subject and then the realm from that is the way to go.

Cheers,

Stuart


On Thu, Dec 12, 2013 at 9:45 PM, [email protected]
<[email protected]>wrote:

> Thanks, domfarr and Les.
>
> I misspoke:  I meant to say, How do I find the realm that created the user
> associated with a session?  In my case, each subject is in a single realm,
> and I have multiple realms with distinct subjects and distinct roles (and
> permissions).  If I want an authorized subject to modify the roles for
> their
> own realm (and not other realms), I need to figure out what realm they are
> associated with.  Does that make more sense?
>
> This might have pointed me in the right direction.
> + Richard
>
>
>
>
> --
> View this message in context:
> http://shiro-user.582556.n2.nabble.com/How-to-find-the-realm-that-created-a-session-tp7579440p7579457.html
> Sent from the Shiro User mailing list archive at Nabble.com.
>

Reply via email to