SecurityContextHolder ThreadLocal

Knowing SecurityContextHolder using ThreadLocal to store user related information. Meaning it does not use HttpSession due to some security concern (not discuss here). Wrote a main method to test that out.

Note: Output result may be vary since it’s using random generator.




Leave a Reply

Your email address will not be published. Required fields are marked *