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:
    CachedIdentityAuthorizeCallback
    • Method Detail

      • get

        CachedIdentity 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