Applying servlet security annotations to different URLs

Solution Verified - Updated -

Issue

  • Can servlet security annotations apply to different URL paths?
  • Make /foo/secure/* requests to servlet bound at /foo/* require authentication using annotations while all other requests to /foo/* do not

Environment

  • JBoss Enterprise Application Platform (EAP) 6
  • JBoss Enterprise Application Platform (EAP) 7
  • Tomcat 7, 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content