Interface IdentityCache


public interface IdentityCache

An identity cache is responsible to provide a specific caching strategy for identities. It should be used in conjunction with CachedIdentityAuthorizeCallback when performing authorization within a authentication mechanism.

Implementations of this interface are specific for each authentication mechanism.

Author:
Pedro Igor
See Also:
  • Method Details

    • put

      void put(SecurityIdentity identity)
      Puts a SecurityIdentity into the cache.
      Parameters:
      identity - the identity to cache (not null)
    • get

      Returns an identity previously cached.
      Returns:
      the cached identity or null if there is no identity in the cache
    • remove

      CachedIdentity remove()
      Removes an identity from the cache.
      Returns:
      the cached identity or null if there is no identity in the cache