Robosoft Technologies interview question

How do you manage Authentication and Multi Factor Authentication in Spring?