Package org.wildfly.security.cache
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 Summary
Modifier and TypeMethodDescriptionget()Returns an identity previously cached.voidput(SecurityIdentity identity) Puts aSecurityIdentityinto the cache.remove()Removes an identity from the cache.
-
Method Details
-
put
Puts aSecurityIdentityinto the cache.- Parameters:
identity- the identity to cache (notnull)
-
get
CachedIdentity get()Returns an identity previously cached.- Returns:
- the cached identity or
nullif there is no identity in the cache
-
remove
CachedIdentity remove()Removes an identity from the cache.- Returns:
- the cached identity or
nullif there is no identity in the cache
-