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.
>