RBC interview question

How to handle security in Spring Boot