On Thu, Mar 14, 2013 at 10:13 AM, NabbleSometimesSucks
<[email protected]> wrote:
> Thanks. So then my question would be why does the call to get passes in a
> String. But the call to remove tries to pass in a SimplePrincipalCollection?

The Cache interface is used by many components in Shiro (Realms,
SessionDAOs, etc).

So the runtime values in the Cache depend on the Cache instance being
used - some Caches are used to cache
PrincipalCollection-to-AuthenticationInfo mappings, some are used to
cache PrincipalCollection-to-AuthorizationInfo mappings, and some are
used to cache sessionId-to-Session mappings, or others still depending
on what in Shiro is doing the caching.

HTH,

Les

Reply via email to