I have a SpringBoot + Security + EhCache project. There is a wrapper class (LoggedUserInfo) around SecurityContextHolder and a service to deal with User information:
<