How would I go about setting the values that are stored as the subjects
Principals?

At the moment when I place a request to
SecurityUtils.getSubject().getPrincipal().toString(); I get the username
returned. I would like to be able to obtain the user uuid. I tried the
following as an alternative but I get a nullPointer Exception:

SecurityUtils.getSubject().getPrincipals().oneByType(my.package.UserEntity.class).getUserId().toString();

Thanks

--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/How-to-set-Principals-tp7490972p7490972.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to