Package org.wildfly.security.cache
Interface IdentityCache
-
- All Known Subinterfaces:
SingleSignOnSession
- All Known Implementing Classes:
DefaultSingleSignOnSession,ProgrammaticSingleSignOnCache
public interface IdentityCacheAn identity cache is responsible to provide a specific caching strategy for identities. It should be used in conjunction with
CachedIdentityAuthorizeCallbackwhen performing authorization within a authentication mechanism.Implementations of this interface are specific for each authentication mechanism.
- Author:
- Pedro Igor
- See Also:
CachedIdentityAuthorizeCallback
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CachedIdentityget()Returns an identity previously cached.voidput(SecurityIdentity identity)Puts aSecurityIdentityinto the cache.CachedIdentityremove()Removes an identity from the cache.
-
-
-
Method Detail
-
put
void put(SecurityIdentity identity)
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
-
-