Class LoginFailuresLifespanUpdate

java.lang.Object
org.keycloak.models.sessions.infinispan.stream.LoginFailuresLifespanUpdate
All Implemented Interfaces:
BiConsumer<org.infinispan.Cache<LoginFailureKey,SessionEntityWrapper<LoginFailureEntity>>,Map.Entry<LoginFailureKey,SessionEntityWrapper<LoginFailureEntity>>>

@ProtoTypeId(65620) public class LoginFailuresLifespanUpdate extends Object implements BiConsumer<org.infinispan.Cache<LoginFailureKey,SessionEntityWrapper<LoginFailureEntity>>,Map.Entry<LoginFailureKey,SessionEntityWrapper<LoginFailureEntity>>>
A BiConsumer that updates the lifespan of login failure cache entries based on realm lockout policies.

This class is used to recalculate and update the time-to-live (TTL) for login failure records stored in the Infinispan cache. The lifespan is determined by the realm's brute force protection settings, including whether permanent lockout is enabled and the maximum number of temporary lockouts allowed.

The class is serializable via Infinispan ProtoStream to support distributed cache operations in remote caches.