Retrieving Shiro Principals
问题 NOTE: Due to subsequent research this question has been completely restructured. I am trying to retrieve values from Shiro's subject PrincipalCollection. I have added two principals to the collection. 'Username' and 'UUID'. When I try to recall these I get a SimplePrincipalCollection of size = 1 and this in turn has the principals as a LinkedHashMap of size = 2. Question is how can I retrieve the principals directly? 回答1: There is no need two add multiple principles for this purpose. You can