I am creating an application using Java EE.
I have created a table in a PostgreSQL database for the user data(username, password, role). I want to make a security realm or something like that in which to put some of the servlets. The goal is to generate a unique code and send it to the user number so that the user can login to the application. The purpose of this realm is to renforce the authentication mechanism.
The problem that I am having is that I don't know if there is a framework/API that can help me implementing this.