In the Web module we can declare authentication, authorization, and transport-level encryption using the provided annotations and deployment descriptors. The following snippet instructs the application server to only let the “manager” role access a resource with a URL matching /mgr/* in our Web application. We defined a security constraint, defined a collection of resources matching the /mgr/* URL, and defined a constraint over the GET, PUT, and POST methods.
Masoud Kalali
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Masoud
Contact Masoud, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack