Class InfinispanSamlArtifactSessionMappingStoreProvider
- java.lang.Object
-
- org.keycloak.models.sessions.infinispan.InfinispanSamlArtifactSessionMappingStoreProvider
-
- All Implemented Interfaces:
SamlArtifactSessionMappingStoreProvider
,Provider
public class InfinispanSamlArtifactSessionMappingStoreProvider extends Object implements SamlArtifactSessionMappingStoreProvider
- Author:
- mhajas
-
-
Field Summary
Fields Modifier and Type Field Description static org.jboss.logging.Logger
logger
-
Constructor Summary
Constructors Constructor Description InfinispanSamlArtifactSessionMappingStoreProvider(Supplier<org.infinispan.commons.api.BasicCache<UUID,String[]>> actionKeyCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
SamlArtifactSessionMappingModel
get(String artifact)
This method returns session mapping associated with the given {@param artifact}void
put(String artifact, int lifespanSeconds, AuthenticatedClientSessionModel clientSessionModel)
Stores the given data and guarantees that data should be available in the store for at least the time specified by {@param lifespanSeconds} parametervoid
remove(String artifact)
Removes data for the given {@param artifact} from the store
-
-
-
Method Detail
-
put
public void put(String artifact, int lifespanSeconds, AuthenticatedClientSessionModel clientSessionModel)
Description copied from interface:SamlArtifactSessionMappingStoreProvider
Stores the given data and guarantees that data should be available in the store for at least the time specified by {@param lifespanSeconds} parameter- Specified by:
put
in interfaceSamlArtifactSessionMappingStoreProvider
-
get
public SamlArtifactSessionMappingModel get(String artifact)
Description copied from interface:SamlArtifactSessionMappingStoreProvider
This method returns session mapping associated with the given {@param artifact}- Specified by:
get
in interfaceSamlArtifactSessionMappingStoreProvider
- Returns:
- session mapping corresponding to given artifact or
null
if it does not exist.
-
remove
public void remove(String artifact)
Description copied from interface:SamlArtifactSessionMappingStoreProvider
Removes data for the given {@param artifact} from the store- Specified by:
remove
in interfaceSamlArtifactSessionMappingStoreProvider
-
-