I am using Spring Security and Spring Session (v1.3.1) in my application.
I would like to use SpringSessionBackedSessionRegistry as my Session Registry and Redis as my Session repository.
The constructor for SpringSessionBackedSessionRegistry is as follows:
SpringSessionBackedSessionRegistry(FindByIndexNameSessionRepository<ExpiringSession> sessionRepository)
The Redis repository, RedisOperationsSessionRepository implements:
FindByIndexNameSessionRepository<org.springframework.session.data.redis.RedisOperationsSessionRepository.RedisSession>
How, then, can I construct an instance of SpringSessionBackedSessionRegistry given an instance of RedisOperationsSessionRepository?
Why is the constructor for SpringSessionBackedSessionRegistry not:
SpringSessionBackedSessionRegistry(FindByIndexNameSessionRepository<? extends ExpiringSession> sessionRepository)