My apologies, I should have looked at the stack trace further.  Just
building a Subject _should not_ create a session unless there is a
session available during building.

Please open a Jira issue and we can address this.

In the meantime, as a workaround, you can interact with your Realm
directly to return a Subject's AuthorizationInfo from its
getAuthorizationInfo(PrincipalCollection) method.  This is protected,
so you'll probably have to create a subclass and create a public
method that exposes getAuthorizationInfo.

Thanks,

Les

On Wed, Mar 14, 2012 at 10:57 AM, Les Hazlewood <[email protected]> wrote:
>> Here's the stacktrace.  You're a step ahead of me!  I guess I didn't realize
>> a session would be created when I just ask for it to build a new subject.
>
> It won't.  Just building a Subject will not automatically create a
> Session.  You have to call subject.getSession() or
> subject.getSession(true) to create a session if the Subject does not
> already have one.
>
> Cheers,
>
> Les

Reply via email to