Security Context
Learn Security Context (Spring MVC Security Integration, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes SecurityContext is the object that holds the Authentication of the current user (who is logged in and with which authorities). SecurityContextHolder gives access to it from anywhere: SecurityContextHolder.getContext().getAuthentication() . Per thread : by default the context is stored in a ThreadLocal , so it belongs to the thread handling the current request.