> See, this confused me. At one point today, I was trying to add more than one > principal information to my Subject. So I would have one being the userId > and one being userName.
This is a totally valid approach - return a SimplePrincipalCollection from your Realm and your Subject's principals will contain both. > So I created a MapPrincipalCollection Do you mean SimplePrincipalMap? if so, the PrincipalMap and the SimplePrincipalMap concepts are not to be used - they are experimental, not documented anywhere, and their JavaDoc clearly explains this. HTH, Les
