public class InfinispanSSOFactory<SV,A,D,L> extends Object implements SSOFactory<Map.Entry<A,AtomicReference<L>>,SV,A,D,L>
| Constructor and Description |
|---|
InfinispanSSOFactory(org.infinispan.Cache<AuthenticationKey,AuthenticationEntry<A,L>> cache,
Marshaller<A,MarshalledValue<A,MarshallingContext>,MarshallingContext> marshaller,
LocalContextFactory<L> localContextFactory,
SessionsFactory<SV,D> sessionsFactory,
boolean lockOnRead) |
| Modifier and Type | Method and Description |
|---|---|
SSO<A,D,L> |
createSSO(String id,
Map.Entry<Map.Entry<A,AtomicReference<L>>,SV> value) |
Map.Entry<Map.Entry<A,AtomicReference<L>>,SV> |
createValue(String id,
A authentication)
Creates a value in the cache, if it does not already exist.
|
Map.Entry<Map.Entry<A,AtomicReference<L>>,SV> |
findValue(String id)
Locates the value in the cache with the specified identifier.
|
SessionsFactory<SV,D> |
getSessionsFactory() |
boolean |
remove(String id)
Removes the specified entry from the cache.
|
public InfinispanSSOFactory(org.infinispan.Cache<AuthenticationKey,AuthenticationEntry<A,L>> cache, Marshaller<A,MarshalledValue<A,MarshallingContext>,MarshallingContext> marshaller, LocalContextFactory<L> localContextFactory, SessionsFactory<SV,D> sessionsFactory, boolean lockOnRead)
public SSO<A,D,L> createSSO(String id, Map.Entry<Map.Entry<A,AtomicReference<L>>,SV> value)
createSSO in interface SSOFactory<Map.Entry<A,AtomicReference<L>>,SV,A,D,L>public Map.Entry<Map.Entry<A,AtomicReference<L>>,SV> createValue(String id, A authentication)
CreatorcreateValue in interface Creator<String,Map.Entry<Map.Entry<A,AtomicReference<L>>,SV>,A>id - the cache entry identifier.public Map.Entry<Map.Entry<A,AtomicReference<L>>,SV> findValue(String id)
Locatorpublic boolean remove(String id)
Removerpublic SessionsFactory<SV,D> getSessionsFactory()
getSessionsFactory in interface SSOFactory<Map.Entry<A,AtomicReference<L>>,SV,A,D,L>Copyright © 2021 JBoss by Red Hat. All rights reserved.