Class ProgrammaticSingleSignOnCache
- java.lang.Object
-
- org.wildfly.security.http.util.sso.ProgrammaticSingleSignOnCache
-
- All Implemented Interfaces:
IdentityCache
public class ProgrammaticSingleSignOnCache extends Object implements IdentityCache
An implementation ofIdentityCacheto provide SSO for programmatic authentication.- Author:
- Darran Lofthouse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CachedIdentityget()Returns an identity previously cached.static IdentityCachenewInstance(HttpExchangeSpi httpExchangeSpi, String mechanismName, SingleSignOnSessionFactory singleSignOnSessionFactory, SingleSignOnConfiguration configuration)voidput(SecurityIdentity identity)Puts aSecurityIdentityinto the cache.CachedIdentityremove()Removes an identity from the cache.
-
-
-
Method Detail
-
get
public CachedIdentity get()
Description copied from interface:IdentityCacheReturns an identity previously cached.- Specified by:
getin interfaceIdentityCache- Returns:
- the cached identity or
nullif there is no identity in the cache
-
put
public void put(SecurityIdentity identity)
Description copied from interface:IdentityCachePuts aSecurityIdentityinto the cache.- Specified by:
putin interfaceIdentityCache- Parameters:
identity- the identity to cache (notnull)
-
remove
public CachedIdentity remove()
Description copied from interface:IdentityCacheRemoves an identity from the cache.- Specified by:
removein interfaceIdentityCache- Returns:
- the cached identity or
nullif there is no identity in the cache
-
newInstance
public static IdentityCache newInstance(HttpExchangeSpi httpExchangeSpi, String mechanismName, SingleSignOnSessionFactory singleSignOnSessionFactory, SingleSignOnConfiguration configuration)
-
-