Class ProgrammaticSingleSignOnCache
java.lang.Object
org.wildfly.security.http.util.sso.ProgrammaticSingleSignOnCache
- All Implemented Interfaces:
IdentityCache
An implementation of
IdentityCache to provide SSO for programmatic authentication.- Author:
- Darran Lofthouse
-
Method Summary
Modifier and TypeMethodDescriptionget()Returns an identity previously cached.static IdentityCachenewInstance(HttpExchangeSpi httpExchangeSpi, String mechanismName, SingleSignOnSessionFactory singleSignOnSessionFactory, SingleSignOnConfiguration configuration) voidput(SecurityIdentity identity) Puts aSecurityIdentityinto the cache.remove()Removes an identity from the cache.
-
Method Details
-
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
Description copied from interface:IdentityCachePuts aSecurityIdentityinto the cache.- Specified by:
putin interfaceIdentityCache- Parameters:
identity- the identity to cache (notnull)
-
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)
-