I have built a REST API in java using the jersey framework and need to secure it with authentication. I have declared the security constraint in the web.xml file. Now, my task is to configure a realm which uses couchbase db for authentication. I need to know what are the ways I can take from here - can I do it through JAAS / can I directly create a login service on a jetty container which authenticates using couchbase / use some framework like spring security / ..??
Thanks!