How can a servlet implement role-based access control?

  • By configuring web.xml
  • By modifying the servlet container source code
  • Using declarative security
  • Using programmatic security
Role-based access control in servlets can be implemented using declarative security, where roles are defined in the deployment descriptor (web.xml) and associated with specific resources or operations.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *