You might be able to hack it by casting the PricipalCollection returned
from the Subject to SimplePrinciapCollection and adding to that but I would
not advice it.


On Thu, Jan 30, 2014 at 6:00 PM, Stuart Broad <[email protected]> wrote:

> When building the AuthenticationInfo in the realm you can use something
> like:
>
>         SimplePrincipalCollection principals = new
> SimplePrincipalCollection(userName, realmName);
>         ...
>         SimpleAuthenticationInfo authInfo = new
> SimpleAuthenticationInfo(principals, password);
>
> And similar logic when building the Session.
>
> Cheers,
>
> Stuart
>
>
> On Thu, Jan 30, 2014 at 5:53 PM, David Barron <[email protected]> wrote:
>
>> Maybe I wasn't clear.  I know how to get the existing principles.  How do
>> I
>> add to them?  Is there anything in the API for doing it or does it require
>> something custom written?
>> In a web application, where in the authentication process would I do it?
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://shiro-user.582556.n2.nabble.com/PrincipleCollection-tp7579605p7579607.html
>> Sent from the Shiro User mailing list archive at Nabble.com.
>>
>
>

Reply via email to