Hi,

Do we have an example where we map Security Constraint (web.xml)


  <security-constraint>
    <web-resource-collection>
      <web-resource-name>apiman-gateway-api</web-resource-name>
      <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
      <role-name>apipublisher</role-name>
    </auth-constraint>
  </security-constraint>
  <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>apiman</realm-name>
  </login-config>
  <security-role>
    <role-name>apipublisher</role-name>
  </security-role>

to the Pax Web

WebContainer.registerConstraintMapping()

Regards,

-- 
Charles Moulliard
Apache Committer & PMC / Architect @RedHat
Twitter : @cmoulliard | Blog :  http://cmoulliard.github.io

Reply via email to